chiark / gitweb /
Use umask 007; preserve perms on logfiles
[modbot-mtm.git] / stump / etc / modenv.INO
index 171547468c4e42352ae679b073b8c2f8cee6e431..382861e9013d38ebdbbf877995f505a03f260444 100755 (executable)
@@ -12,6 +12,8 @@
 
 set -e
 
+umask 007
+
 #######################################################################
 # this is the root directory where moderation software & config
 # resides. Make sure that sendmail is in the PATH.
@@ -288,6 +290,5 @@ export BEGIN_PGP_SIGNED_MESSAGE BOT_SUBJECT_PREFIX
 #
 
 if [ "x$1" != "x" ]; then
-  umask 077
   antivirus | decodeBase64 | "$@"
 fi