summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibpiny/debian/libpiny-perl.postinst3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpiny/debian/libpiny-perl.postinst b/libpiny/debian/libpiny-perl.postinst
index 065289a..aa38007 100755
--- a/libpiny/debian/libpiny-perl.postinst
+++ b/libpiny/debian/libpiny-perl.postinst
@@ -7,8 +7,9 @@ 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
+ chgrp www-data /etc/libpiny.key
fi
;;