2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-13 07:10:49 +00:00
Comrad/bin/comrad-apocalype

21 lines
580 B
Plaintext
Raw Normal View History

2020-09-18 05:51:34 +00:00
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
wd=`pwd`
path=`realpath "$SCRIPTPATH/../../data"`
path_code=`realpath "$SCRIPTPATH/../../code"`
echo "Removing $path. You will permanently lose your users and contacts, including the prime entities of Operator, Telephone, and World. Proceed? "
read -p "[y/N] " y_n
echo $y_n
if [ ! "$y_n" = "y" ]; then
echo "Cancelling"
else
rm -r $path
#echo "Reregistering..."
2020-09-29 13:09:56 +00:00
#comrad-cli /register
2020-09-18 05:51:34 +00:00
cd $path_code
2020-09-29 13:09:56 +00:00
python -c "from comrad import *; create_phonelines()"
comrad-update
2020-09-18 05:51:34 +00:00
fi