Updated maintenance scripts

This commit is contained in:
Michiel Broek
2004-06-01 19:33:28 +00:00
parent be16a1798f
commit 1c5b2c8f3e
7 changed files with 34 additions and 15 deletions

View File

@@ -7,6 +7,10 @@
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
#