From e5d71fa3d2791e2c762fe2a88d7d3462ee8310e7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 2 Oct 2022 14:43:05 +0200 Subject: Adding debconf options for container directory permissions. Signed-off-by: Daniel Baumann --- debian/open-infrastructure-container-tools.postinst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'debian/open-infrastructure-container-tools.postinst') 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) -- cgit v1.2.3