From a1a447406787efa2567b403334eb0031a7c45ad2 Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Wed, 20 Apr 2011 23:15:07 -0700 Subject: Make libpiny.key readable by www-data --- libpiny/debian/libpiny-perl.postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpiny/debian/libpiny-perl.postinst') 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 ;; -- cgit v1.2.3 From 878f58e88d6b1b607279464488e46976785db60a Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Fri, 22 Apr 2011 21:07:01 -0700 Subject: Postinstall should let secret key be readable by apache --- libpiny/debian/libpiny-perl.postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpiny/debian/libpiny-perl.postinst') 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 ;; -- cgit v1.2.3