summaryrefslogtreecommitdiff
path: root/libpiny/debian/libpiny-perl.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'libpiny/debian/libpiny-perl.postinst')
-rwxr-xr-xlibpiny/debian/libpiny-perl.postinst4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpiny/debian/libpiny-perl.postinst b/libpiny/debian/libpiny-perl.postinst
index 065289a..85cca0c 100755
--- a/libpiny/debian/libpiny-perl.postinst
+++ b/libpiny/debian/libpiny-perl.postinst
@@ -7,9 +7,11 @@ case "$1" in
configure)
if [ ! -f /etc/libpiny.key ]; then
- umask 0177
+ umask 0137
dd if=/dev/urandom of=/etc/libpiny.key bs=512 count=1
fi
+ chgrp shadow /etc/libpiny.key
+ chmod g+r /etc/libpiny.key # Updating an old umask
;;