chiark / gitweb /
install-substitutions: insist on webstump 022
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 6 Oct 2014 14:10:06 +0000 (15:10 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 6 Oct 2014 14:10:06 +0000 (15:10 +0100)
install-substitutions

index 9bcee54..74e9043 100755 (executable)
@@ -13,6 +13,14 @@ if [ $# != 0 ]; then echo >&2 "usage: ./${0##*/} [-n]"; exit 1; fi
 
 . ./get-settings
 
+if [ x"`whoami`" != x"$OURUSER" ]; then
+       echo >&2 "$0 must be run as $OURUSER, skipping"
+       exit 0
+fi
+
+# procmail insists on g-w
+umask 022
+
 find -name '*.IN[O1]' ! -path '*/skeleton/*' -exec perl -e '
        use IO::Handle;
        use POSIX;