Permalink
Browse files

Restore umask in postinst

Otherwise compiled py files would end up unreadable for normal users.
  • Loading branch information...
1 parent 98e3797 commit 13b4f961462cc816c8aaf00113359d10528fea5c @wichert wichert committed Sep 25, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 debian/thumbor.postinst
View
@@ -13,6 +13,7 @@ if [ "$1" = "configure" ] ; then
if [ ! -e /etc/thumbor.key ] ; then
umask 077
dd if=/dev/urandom of=- bs=1024 count=1 2>/dev/null | md5sum -b - | cut -d' ' -f1 >/etc/thumbor.key
+ umask 002
chown thumbor:thumbor /etc/thumbor.key
fi
fi

0 comments on commit 13b4f96

Please sign in to comment.