Make development happen first.

Go back to sleeping the old way.
This commit is contained in:
Daniel Ceregatti 2023-10-18 14:43:04 -07:00
parent 499d92e179
commit f87b26239f

View file

@ -241,14 +241,6 @@ mergexml(){
# Start the server in the foreground # Start the server in the foreground
start(){ start(){
# Ensure mpmissions has at least one map. If not, copy it from the local read-only volume that stores pristine mpmissons directories
if [ ! -d "${MPMISSIONS}/${MAP}" ] && [ -d "/mpmissions/${MAP}" ]
then
echo
echo "Performing one-time copy of ${MAP} mpmissions..."
echo
cp -av /mpmissions/${MAP} ${MPMISSIONS}
fi
# If we're developing, just block the container # If we're developing, just block the container
if [[ ${DEVELOPMENT} = "1" ]] if [[ ${DEVELOPMENT} = "1" ]]
then then
@ -257,7 +249,19 @@ start(){
echo "Caught SIGTERM/SIGINT..." echo "Caught SIGTERM/SIGINT..."
exit 0 exit 0
' SIGTERM SIGINT ' SIGTERM SIGINT
exec sleep 1000000 while [ true ]
do
sleep 1
done
exit 0
fi
# Ensure mpmissions has at least one map. If not, copy it from the local read-only volume that stores pristine mpmissons directories
if [ ! -d "${MPMISSIONS}/${MAP}" ] && [ -d "/mpmissions/${MAP}" ]
then
echo
echo "Performing one-time copy of ${MAP} mpmissions..."
echo
cp -av /mpmissions/${MAP} ${MPMISSIONS}
fi fi
# Do the report on exit. Set here so that it only happens once we're starting the server, and not for other actions. # Do the report on exit. Set here so that it only happens once we're starting the server, and not for other actions.
trap ' trap '