summaryrefslogtreecommitdiff
path: root/libpiny/debian
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-04-24 13:00:05 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-04-24 13:00:05 -0700
commitffab3ec34b9fd949a9877d0a19182b58911424da (patch)
tree102fb78c332d7c43d5c3671e4de59bcba25134ca /libpiny/debian
parent4ac0fd01b73a0b718db3a756866fee121a1615f1 (diff)
parent2a27be477f89b42abb23793c5118b40120b793aa (diff)
downloadpiny-code-ffab3ec34b9fd949a9877d0a19182b58911424da.tar.gz
piny-code-ffab3ec34b9fd949a9877d0a19182b58911424da.zip
Merge branch 'master' of piny.be:/srv/git/piny-code
Conflicts: libpiny/lib/Piny/Repo.pm
Diffstat (limited to 'libpiny/debian')
-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
;;