This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/script/monthly

16 lines
334 B
Plaintext
Raw Normal View History

2001-08-17 05:46:24 +00:00
#!/bin/sh
#
# MBSE BBS Monthly - Should be run at the first of the month at 00:10
#
2002-02-04 15:18:06 +00:00
# $Id$
2001-08-17 05:46:24 +00:00
if [ "$MBSE_ROOT" = "" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
# While the system is on UPS battery power, don't start maintenance
#
while [ -f $MBSE_ROOT/sema/upsalarm ]; do
sleep 60
done