mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-17 19:02:26 +08:00
up
This commit is contained in:
22
server/build/run-server.sh
Executable file
22
server/build/run-server.sh
Executable 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'
|
||||
Reference in New Issue
Block a user