This commit is contained in:
Zheng Kai
2023-03-29 17:42:41 +08:00
parent 94b04a181a
commit 1b107ed035
36 changed files with 617 additions and 0 deletions

22
server/build/run-server.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash -e
DIR=$(readlink -f "$0") && DIR=$(dirname "$DIR") && cd "$DIR" || exit 1
. ./common.sh
if [ ! -f config.ini ]; then
echo "type = $TYPE" > config.ini
fi
"${DIR}/build-server.sh" "$TYPE"
echo 'done'
echo
"${DIR}/stop-server.sh" "$TYPE" || :
echo 'done'
mv "$EXE_NEXT" "$EXE"
echo
"${DIR}/start-server.sh" "$TYPE"
echo 'done'