Automated file edits, SQL user handling

This commit is contained in:
Marwolf
2018-08-25 02:00:51 -04:00
parent 83fce1fa99
commit 45f109403b
3 changed files with 70 additions and 40 deletions

View File

@@ -25,31 +25,6 @@ sudo chmod -R 777 Game | tee -a ../updater.log &>/dev/null
sudo setfacl -m user:$USER:rw /var/run/docker.sock | tee -a ../updater.log &>/dev/null
cd ..
clear
echo "Do you need to do any manual file editing?"
echo ""
echo "${RED}1${NC} - Yes, lets begin."
echo "${RED}2${NC} - No, continue."
echo ""
echo "Which of the above do you wish to do? Type the choice number and press enter."
read edit
if [ "$edit" == "1" ]; then
clear
sudo nano .env
sudo nano Game/client/src/org/openrsc/client/Config.java
sudo nano Game/Launcher/src/Main.java
sudo nano Game/server/config/config.xml
clear
echo "Restarting Ghost container"
sudo docker stop ghost && sudo docker start ghost | tee -a updater.log &>/dev/null
fi
if [ "$edit" == "2" ]; then
echo ""
fi
# Server
cd Game
clear