From 70420abaa115e22ab118dce86325020a34765a97 Mon Sep 17 00:00:00 2001 From: gOOvER Date: Sun, 27 Oct 2024 06:51:36 +0100 Subject: [PATCH] Update entrypoint.sh --- steamcmd/entrypoint.sh | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/steamcmd/entrypoint.sh b/steamcmd/entrypoint.sh index ef79807e..fb431619 100644 --- a/steamcmd/entrypoint.sh +++ b/steamcmd/entrypoint.sh @@ -30,10 +30,6 @@ echo -e "${BLUE}---------------------------------------------------------------- # Switch to the container's working directory cd /home/container || exit 1 -# writing dotnet infos to file -#dotnetinfo=$(dotnet --info) -#echo $dotnetinfo >| dotnet_info.txt - echo -e "${BLUE}---------------------------------------------------------------------${NC}" echo -e "${GREEN}Starting Server.... Please wait...${NC}" echo -e "${BLUE}---------------------------------------------------------------------${NC}" @@ -54,20 +50,9 @@ else fi ## if auto_update is not set or to 1 update -if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then +if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server - if [ ! -z ${STEAM_APPID} ]; then - if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) $( [[ "${STEAM_SDK}" == "1" ]] && printf %s '+app_update 1007' ) +app_update ${STEAM_APPID} $( [[ -z ${STEAM_BETAID} ]] || printf %s "-beta ${STEAM_BETAID}" ) $( [[ -z ${STEAM_BETAPASS} ]] || printf %s "-betapassword ${STEAM_BETAPASS}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit - else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) $( [[ "${STEAM_SDK}" == "1" ]] && printf %s '+app_update 1007' ) +app_update ${STEAM_APPID} $( [[ -z ${STEAM_BETAID} ]] || printf %s "-beta ${STEAM_BETAID}" ) $( [[ -z ${STEAM_BETAPASS} ]] || printf %s "-betapassword ${STEAM_BETAPASS}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit - fi - else - echo -e "${BLUE}---------------------------------------------------------------------${NC}" - echo -e "${YELLOW}No appid set. Starting Server${NC}" - echo -e "${BLUE}---------------------------------------------------------------------${NC}" - fi - + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) $( [[ "${STEAM_SDK}" == "1" ]] && printf %s '+app_update 1007' ) +app_update ${STEAM_APPID} $( [[ -z ${STEAM_BETAID} ]] || printf %s "-beta ${STEAM_BETAID}" ) $( [[ -z ${STEAM_BETAPASS} ]] || printf %s "-betapassword ${STEAM_BETAPASS}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit else echo -e "${BLUE}---------------------------------------------------------------${NC}" echo -e "${YELLOW}Not updating game server as auto update was set to 0. Starting Server${NC}"