From 065be5e2993ca84f2ffe1c32e964c4c37f1b70a7 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 9 Jul 2017 21:52:30 -0400 Subject: [PATCH] Detect if OXIDE_FLAG exists, and update OxideMod if it does. --- entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index c89f06d..4e97c75 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,5 +10,12 @@ cd /home/container MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` echo ":/home/container$ ${MODIFIED_STARTUP}" +if [ -f OXIDE_FLAG ]; then + echo "Updating OxideMod..." + curl "https://dl.bintray.com/oxidemod/builds/Oxide-Rust.zip" > oxide.zip + unzip oxide.zip + rm oxide.zip +fi + # Run the Server node /wrapper.js "${MODIFIED_STARTUP}"