From 4fd8fe880a6ee284edb0b5439ff8378fad0d37a3 Mon Sep 17 00:00:00 2001 From: Luna <83607009+LunaWasFlagged@users.noreply.github.com> Date: Sat, 10 Jul 2021 16:56:28 -0300 Subject: [PATCH] Make the server automatically sync the changes with the GitHub repo on restart (#9) --- script/reset.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/reset.sh b/script/reset.sh index 77015ed..b0db497 100755 --- a/script/reset.sh +++ b/script/reset.sh @@ -8,6 +8,10 @@ pkill -9 schematics.sh pkill -9 server.sh pkill -9 java +# Sync changes with the github repository +cd ~/server-default +git pull + chmod -R 777 ~/server/ rm -rf ~/server/* cp -Tr ~/server-default/ ~/server/