Make the server automatically sync the changes with the GitHub repo on restart (#9)
This commit is contained in:
parent
2f3acad783
commit
4fd8fe880a
1 changed files with 4 additions and 0 deletions
|
@ -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/
|
||||||
|
|
Loading…
Reference in a new issue