Compare commits

...

3 Commits

Author SHA1 Message Date
45889f9d54 „README.md“ ändern 2023-05-22 09:42:08 +02:00
26d8027eac „scripts/start-server.sh“ ändern 2022-12-10 08:23:55 +01:00
e77a8bcfe6 „scripts/start.sh“ ändern 2022-10-25 11:01:55 +02:00
3 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ This Docker will download and install SteamCMD and the according game that is pu
| UID | User Identifier | 99 | | UID | User Identifier | 99 |
| GID | Group Identifier | 100 | | GID | Group Identifier | 100 |
| GAME_PORT | Port the server will be running on | 27015 | | GAME_PORT | Port the server will be running on | 27015 |
| VALIDATE | Validates the game data | true | | VALIDATE | Validates the game data | false |
| USERNAME | Leave blank for anonymous login | blank | | USERNAME | Leave blank for anonymous login | blank |
| PASSWRD | Leave blank for anonymous login | blank | | PASSWRD | Leave blank for anonymous login | blank |

View File

@@ -51,11 +51,11 @@ else
fi fi
echo "---Prepare Server---" echo "---Prepare Server---"
if [ ! -f ${DATA_DIR}/.steam/sdk32/steamclient.so ]; then if [ ! -f ${DATA_DIR}/.steam/sdk64/steamclient.so ]; then
if [ ! -d ${DATA_DIR}/.steam/sdk32 ]; then if [ ! -d ${DATA_DIR}/.steam/sdk64 ]; then
mkdir -p ${DATA_DIR}/.steam/sdk32 mkdir -p ${DATA_DIR}/.steam/sdk64
fi fi
cp -R ${STEAMCMD_DIR}/linux32/* ${DATA_DIR}/.steam/sdk32/ cp -R ${STEAMCMD_DIR}/linux64/* ${DATA_DIR}/.steam/sdk64/
fi fi
chmod -R ${DATA_PERM} ${DATA_DIR} chmod -R ${DATA_PERM} ${DATA_DIR}
echo "---Server ready---" echo "---Server ready---"

View File

@@ -13,7 +13,7 @@ cp -f /opt/scripts/user.sh /opt/scripts/start-user.sh > /dev/null 2>&1 ||:
if [ -f /opt/scripts/start-user.sh ]; then if [ -f /opt/scripts/start-user.sh ]; then
echo "---Found optional script, executing---" echo "---Found optional script, executing---"
chmod -f +x /opt/scripts/start-user.sh.sh ||: chmod -f +x /opt/scripts/start-user.sh ||:
/opt/scripts/start-user.sh || echo "---Optional Script has thrown an Error---" /opt/scripts/start-user.sh || echo "---Optional Script has thrown an Error---"
else else
echo "---No optional script found, continuing---" echo "---No optional script found, continuing---"