Remove sudo from reinitialisation. Make db non persistent.

This commit is contained in:
Jan Eitzinger
2021-09-19 07:30:55 +02:00
parent 086d363b7b
commit 540c23ce87
2 changed files with 3 additions and 4 deletions

View File

@@ -2,12 +2,12 @@
if [ -d symfony ]; then
echo "Data already initialized!"
echo -n "Perform a fresh initialisation? Answer yes to proceed and no to exit. "
echo -n "Perform a fresh initialisation? [yes to proceed / no to exit] "
read -r answer
if [ "$answer" == "yes" ]; then
echo "Cleaning directories ..."
rm -rf symfony
sudo rm -rf job-archive
rm -rf job-archive
rm -rf influxdb/data/*
rm -rf sqldata/*
echo "done."