mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 22:31:18 +00:00
Make development happen first.
Go back to sleeping the old way.
This commit is contained in:
parent
499d92e179
commit
f87b26239f
1 changed files with 13 additions and 9 deletions
|
@ -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 '
|
||||||
|
|
Loading…
Add table
Reference in a new issue