diff options
author | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2011-04-22 21:07:01 -0700 |
---|---|---|
committer | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2011-04-22 21:07:01 -0700 |
commit | 878f58e88d6b1b607279464488e46976785db60a (patch) | |
tree | 85e7eaabbf8524a03afa2459e54c7e26bca49cb5 /libpiny/debian | |
parent | 7663a27030cbcd138fd2c9e7b324e314fb1f7d4c (diff) | |
download | piny-code-878f58e88d6b1b607279464488e46976785db60a.tar.gz piny-code-878f58e88d6b1b607279464488e46976785db60a.zip |
Postinstall should let secret key be readable by apache
Diffstat (limited to 'libpiny/debian')
-rwxr-xr-x | libpiny/debian/libpiny-perl.postinst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpiny/debian/libpiny-perl.postinst b/libpiny/debian/libpiny-perl.postinst index aa38007..85cca0c 100755 --- a/libpiny/debian/libpiny-perl.postinst +++ b/libpiny/debian/libpiny-perl.postinst @@ -9,8 +9,9 @@ case "$1" in if [ ! -f /etc/libpiny.key ]; then umask 0137 dd if=/dev/urandom of=/etc/libpiny.key bs=512 count=1 - chgrp www-data /etc/libpiny.key fi + chgrp shadow /etc/libpiny.key + chmod g+r /etc/libpiny.key # Updating an old umask ;; |