Added option to skip update
parent
e419cabe09
commit
c75c3583d2
|
@ -13,6 +13,7 @@ The following environment variables are available:
|
||||||
```
|
```
|
||||||
STEAM_USERNAME (DEFAULT: "" - Required for installing/updating Starbound)
|
STEAM_USERNAME (DEFAULT: "" - Required for installing/updating Starbound)
|
||||||
STEAM_PASSWORD (DEFAULT: "" - Required for installing/updating Starbound)
|
STEAM_PASSWORD (DEFAULT: "" - Required for installing/updating Starbound)
|
||||||
|
SKIP_STEAMCMD (DEFAULT: "" - Optional for skipping updating Starbound)
|
||||||
```
|
```
|
||||||
|
|
||||||
# Updating the server
|
# Updating the server
|
||||||
|
|
|
@ -39,8 +39,12 @@ if [ ! -f "/steamcmd/starbound/linux/starbound_server" ]; then
|
||||||
else
|
else
|
||||||
# Check that username and password are both set, otherwise skip update
|
# Check that username and password are both set, otherwise skip update
|
||||||
if [ -z "$STEAM_USERNAME" ] || [ -z "$STEAM_PASSWORD" ]; then
|
if [ -z "$STEAM_USERNAME" ] || [ -z "$STEAM_PASSWORD" ]; then
|
||||||
echo "Steam username or password not set, skipping update.."
|
if [ -z "$SKIP_STEAMCMD" ]; then
|
||||||
|
echo "Steam username or password not set, exiting.."
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Steam username or password not set, skipping update.."
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# Install Starbound from install.txt
|
# Install Starbound from install.txt
|
||||||
echo "Installing Starbound.."
|
echo "Installing Starbound.."
|
||||||
|
|
Loading…
Reference in New Issue