mirror of
https://github.com/AsgardEternal/SquadDocker.git
synced 2024-09-28 09:24:22 -05:00
feat: launch both SquadJS & the Server at once
This commit is contained in:
parent
4bcb4b168a
commit
05b76a1da4
@ -35,12 +35,13 @@ main() {
|
||||
Port="${GAMEPORT}" \
|
||||
QueryPort="${QUERYPORT}" \
|
||||
FIXEDMAXTICKRATE="${FIXEDMAXTICKRATE}" \
|
||||
FIXEDMAXPLAYERS="${FIXEDMAXPLAYERS}"
|
||||
FIXEDMAXPLAYERS="${FIXEDMAXPLAYERS}" &
|
||||
|
||||
#(cd "${USER_HOME}/SquadJS" && su "${USER}" node index.js)
|
||||
#while true ; do
|
||||
# sleep 1
|
||||
#done
|
||||
(cd "${USER_HOME}/SquadJS" && su "${USER}" node index.js) &
|
||||
|
||||
wait -n
|
||||
|
||||
echo $?
|
||||
}
|
||||
|
||||
main
|
||||
|
Loading…
Reference in New Issue
Block a user