2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-03 23:15:33 +00:00
Comrad/bin/komrade-reset

17 lines
377 B
Plaintext
Raw Normal View History

2020-09-17 05:01:59 +00:00
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
wd=`pwd`
path=`realpath "$SCRIPTPATH/../../data"`
echo "Removing $path. You will permanently lose your users and contacts. Proceed? "
2020-09-17 05:03:47 +00:00
read -p "[y/N] " y_n
2020-09-17 05:01:59 +00:00
echo $y_n
if [ ! "$y_n" = "y" ]; then
echo "Cancelling"
else
rm -r $path
2020-09-17 15:46:11 +00:00
#echo "Reregistering..."
#komrade-cli /register
2020-09-17 05:01:59 +00:00
fi