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}" \ Port="${GAMEPORT}" \
QueryPort="${QUERYPORT}" \ QueryPort="${QUERYPORT}" \
FIXEDMAXTICKRATE="${FIXEDMAXTICKRATE}" \ FIXEDMAXTICKRATE="${FIXEDMAXTICKRATE}" \
FIXEDMAXPLAYERS="${FIXEDMAXPLAYERS}" FIXEDMAXPLAYERS="${FIXEDMAXPLAYERS}" &
#(cd "${USER_HOME}/SquadJS" && su "${USER}" node index.js) (cd "${USER_HOME}/SquadJS" && su "${USER}" node index.js) &
#while true ; do
# sleep 1 wait -n
#done
echo $?
} }
main main