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/saved-mbsebbs-code-2/script/monthly
vbcoen 6a6a253885 Updated mbmon.c & mbsetup.c
Added doc dir. and manual as .pdf
restored deleted files - yep I screwed the pooch.
2015-11-03 20:41:11 +00:00

24 lines
560 B
Bash

#!/bin/sh
#
# MBSE BBS Monthly - Should be run at the first day of the month at 01:30
#
# $Id: monthly,v 1.5 2005/08/26 10:42:11 mbse Exp $
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/var/sema/upsalarm ]; do
sleep 60
done
# Check files database and download areas.
#
$MBSE_ROOT/bin/mbfile check index -quiet