]> andersk Git - moira.git/commitdiff
chmod/chown file.
authorzacheiss <zacheiss>
Thu, 12 Mar 2009 21:17:25 +0000 (21:17 +0000)
committerzacheiss <zacheiss>
Thu, 12 Mar 2009 21:17:25 +0000 (21:17 +0000)
gen/confluence.sh [new file with mode: 0755]

diff --git a/gen/confluence.sh b/gen/confluence.sh
new file mode 100755 (executable)
index 0000000..010e482
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+# $Id$
+
+if [ -d /var/athena ] && [ -w /var/athena ]; then
+    exec >/var/athena/moira_update.log 2>&1
+else 
+    exec >/tmp/moira_update.log 2>&1
+fi
+
+# The following exit codes are defined and MUST BE CONSISTENT with the
+# error codes the library uses:
+MR_MISSINGFILE=47836473
+
+PATH="/etc:/bin:/usr/bin:/usr/etc:/usr/athena/etc"
+OUTFILE=/var/local/moira-feed/groups
+
+# Alert if the output file doesn't exist
+test -r $OUTFILE || exit $MR_MISSINGFILE
+
+# Set the perms usefully
+chgrp www $OUTFILE
+chmod g+r $OUTFILE
+
+# cleanup
+test -f $0 && rm -f $0
+
+exit 0
This page took 0.047292 seconds and 5 git commands to generate.