feat: launch both SquadJS & the Server at once

This commit is contained in:
Price Hiller 2023-01-14 22:53:39 -06:00
parent 4bcb4b168a
commit 05b76a1da4

View File

@ -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