framework/script/reset.sh

22 lines
340 B
Bash
Raw Normal View History

2020-04-16 22:08:07 +03:00
#!/bin/sh
# The following script is used when resetting the server
# Currently every 24 h
pkill -9 init.sh
pkill -9 schematics.sh
pkill -9 server.sh
pkill -9 java
2020-04-16 22:08:07 +03:00
2023-09-27 00:50:16 +03:00
# Sync changes with the GitHub repository
cd ~/framework
git pull
cd ~/server-default
git pull
2020-04-17 01:01:58 +03:00
chmod -R 777 ~/server/
2020-04-16 22:08:07 +03:00
rm -rf ~/server/*
cp -Tr ~/server-default/ ~/server/
2020-04-16 22:17:16 +03:00