From e27f9695c3a36185bd142b5291aa3c4eb28ad789 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Thu, 26 Jun 2025 04:08:25 -0400 Subject: [PATCH] Improving file mailleur-reset-db.sh --- support/{resetdb.sh => mailleur-reset-db.sh} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename support/{resetdb.sh => mailleur-reset-db.sh} (85%) 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 "-----------" -- 2.47.3