summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-container-tools.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/open-infrastructure-container-tools.postinst')
-rwxr-xr-xdebian/open-infrastructure-container-tools.postinst7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/open-infrastructure-container-tools.postinst b/debian/open-infrastructure-container-tools.postinst
index af0137f..f697b3b 100755
--- a/debian/open-infrastructure-container-tools.postinst
+++ b/debian/open-infrastructure-container-tools.postinst
@@ -30,10 +30,10 @@ Install ()
if ! dpkg-statoverride --list "${DEFAULT}" > /dev/null 2>&1 &&
! dpkg-statoverride --list "${TARGET}" > /dev/null 2>&1
then
- chmod 0700 "${TARGET}"
+ chmod ${DIRECTORY_PERMISSIONS} "${TARGET}"
chown root:root "${TARGET}"
- chmod 0700 "${DEFAULT}"
+ chmod ${DIRECTORY_PERMISSIONS} "${DEFAULT}"
chown root:root "${DEFAULT}"
fi
}
@@ -118,6 +118,9 @@ case "${1}" in
db_get open-infrastructure-container-tools/cache
CACHE="${RET:-/var/cache/container}" # string (w/o empty)
+ db_get open-infrastructure-container-tools/directory-permissions
+ DIRECTORY_PERMISSIONS="${RET}" # select (w/o empty)
+
db_get open-infrastructure-container-tools/build-script
SCRIPT="${RET:-debian}" # string (w/o empty)