summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/open-infrastructure-container-tools.postinst10
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/open-infrastructure-container-tools.postinst b/debian/open-infrastructure-container-tools.postinst
index 97037fd..85d5530 100644
--- a/debian/open-infrastructure-container-tools.postinst
+++ b/debian/open-infrastructure-container-tools.postinst
@@ -24,6 +24,16 @@ Setup ()
fi
fi
fi
+
+ if ! dpkg-statoverride --list "${DEFAULT}" > /dev/null 2>&1 &&
+ ! dpkg-statoverride --list "${TARGET}" > /dev/null 2>&1
+ then
+ chmod 0700 "${TARGET}"
+ chown root:root "${TARGET}"
+
+ chmod 0700 "${DEFAULT}"
+ chown root:root "${DEFAULT}"
+ fi
}
case "${1}" in