Files
orca/server/build/run-server.sh
Zheng Kai 1b107ed035 up
2023-03-29 17:55:21 +08:00

23 lines
345 B
Bash
Executable File

#!/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'