DELAY=10
DOIT=doit
#---------------------------------------------------------------
-OWNER=`stat -c '%U' resetdb.sh`
+OWNER=`stat -c '%U' $0`
USER=`id -nu`
if [ "$USER" != "$OWNER" ] ; then
echo ""
echo "-----------"
- echo "ATTENTION! $0 MUST BE executed by $0 owner, exiting"
+ echo "ATTENTION! $0 MUST BE executed by $0 file owner, exiting"
echo "-----------"
exit 1
fi
if [ $# -eq 0 -o $# -ge 1 -a "$1" != "$DOIT" ] ; then
echo ""
echo "-----------"
- echo "ATTENTION! you are requesting a FULL database RESET"
+ echo "ATTENTION!:"
+ echo "- You are requesting a FULL database RESET."
+ echo "- You are requesting spool directory contents erasing."
+ echo ""
+ echo "all data, (DB contents, email, logs) will be GONE forever."
echo "Are you sure!"
echo "You have $DELAY seconds to cancel (CTRL-C)"
echo "-----------"