From: Jean-Marc Pigeon (Delson) Date: Thu, 26 Jun 2025 08:08:25 +0000 (-0400) Subject: Improving file mailleur-reset-db.sh X-Git-Tag: tag-0.10~25 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=e27f9695c3a36185bd142b5291aa3c4eb28ad789;p=jmp%2Fmailleur Improving file mailleur-reset-db.sh --- diff --git a/support/resetdb.sh b/support/mailleur-reset-db.sh similarity index 85% rename from support/resetdb.sh rename to support/mailleur-reset-db.sh index aadcd2d..3f5392f 100755 --- a/support/resetdb.sh +++ b/support/mailleur-reset-db.sh @@ -8,12 +8,12 @@ APPLICATION=mailleur 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 @@ -21,7 +21,11 @@ if [ "$USER" != "$OWNER" ] ; then 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 "-----------"