Updated maintenance scripts
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# MBSE BBS Weekly - Should be run every week at sunday from cron at 00:05
|
||||
# MBSE BBS Weekly - Should be run every week at sunday from cron at 00:15
|
||||
#
|
||||
# $Id$
|
||||
|
||||
if [ "$MBSE_ROOT" = "" ]; then
|
||||
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
||||
fi
|
||||
|
||||
if [ "`id -un`" != "mbse" ] ; then
|
||||
echo "Must be run by user 'mbse'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# While the system is on UPS battery power, don't start maintenance
|
||||
#
|
||||
while [ -f $MBSE_ROOT/sema/upsalarm ]; do
|
||||
|
Reference in New Issue
Block a user