Make the server automatically sync the changes with the GitHub repo on restart (#9)

This commit is contained in:
Luna 2021-07-10 16:56:28 -03:00 committed by GitHub
parent 2f3acad783
commit 4fd8fe880a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,10 @@ pkill -9 schematics.sh
pkill -9 server.sh pkill -9 server.sh
pkill -9 java pkill -9 java
# Sync changes with the github repository
cd ~/server-default
git pull
chmod -R 777 ~/server/ chmod -R 777 ~/server/
rm -rf ~/server/* rm -rf ~/server/*
cp -Tr ~/server-default/ ~/server/ cp -Tr ~/server-default/ ~/server/