hotfix
This commit is contained in:
parent
5f81185930
commit
44dbf25232
|
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
echo -e "╔═════════════════════╗"
|
||||||
|
echo -e "║ EntryPoint.sh ║"
|
||||||
|
echo -e "╚═════════════════════╝\n"
|
||||||
cd /home/container
|
cd /home/container
|
||||||
WORKING_DIR="$PWD"
|
|
||||||
|
# Fix for Rust not starting
|
||||||
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)
|
||||||
|
|
||||||
# Make internal Docker IP address available to processes.
|
# Make internal Docker IP address available to processes.
|
||||||
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
||||||
|
|
@ -9,19 +14,10 @@ export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
||||||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||||
|
|
||||||
echo -e "╔═════════════════════╗"
|
|
||||||
echo -e "║ Update Sys. ║"
|
|
||||||
echo -e "╚═════════════════════╝\n"
|
|
||||||
apt-get update -y && apt-get upgrade -y
|
apt-get update -y && apt-get upgrade -y
|
||||||
|
|
||||||
echo -e "╔═════════════════════╗"
|
|
||||||
echo -e "║ Update Rust ║"
|
|
||||||
echo -e "╚═════════════════════╝\n"
|
|
||||||
./steamcmd/steamcmd.sh +force_install_dir /home/container +login anonymous +app_update 258550 +quit
|
./steamcmd/steamcmd.sh +force_install_dir /home/container +login anonymous +app_update 258550 +quit
|
||||||
|
|
||||||
echo -e "╔═════════════════════╗"
|
|
||||||
echo -e "║ Update Oxide ║"
|
|
||||||
echo -e "╚═════════════════════╝\n"
|
|
||||||
if [ -f OXIDE_FLAG ] || [ "${OXIDE}" = 1 ] || [ "${UMOD}" = 1 ]; then
|
if [ -f OXIDE_FLAG ] || [ "${OXIDE}" = 1 ] || [ "${UMOD}" = 1 ]; then
|
||||||
echo "Updating uMod..."
|
echo "Updating uMod..."
|
||||||
curl -sSL "https://github.com/OxideMod/Oxide.Rust/releases/latest/download/Oxide.Rust-linux.zip" > umod.zip
|
curl -sSL "https://github.com/OxideMod/Oxide.Rust/releases/latest/download/Oxide.Rust-linux.zip" > umod.zip
|
||||||
|
|
@ -31,9 +27,5 @@ if [ -f OXIDE_FLAG ] || [ "${OXIDE}" = 1 ] || [ "${UMOD}" = 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run the Server
|
# Run the Server
|
||||||
# Fix for Rust not starting
|
echo -e "INVOKE WRAPPER..."
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)
|
|
||||||
echo -e "╔═════════════════════╗"
|
|
||||||
echo -e "║ INVOKE WRAPPER... ║"
|
|
||||||
echo -e "╚═════════════════════╝\n"
|
|
||||||
node /wrapper.js "${MODIFIED_STARTUP}"
|
node /wrapper.js "${MODIFIED_STARTUP}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user