Skip to content
Permalink
Browse files

fix(arkserver): resolve further issues highlighted with ark mod fix (#…

…2766)

* fix(arkserver): resolve further issues highlighted with ark mod fix
  • Loading branch information
dgibbs64 committed Mar 19, 2020
1 parent 050bc42 commit 80c443928087b872c31253818708947a36bb9223
Showing with 18 additions and 6 deletions.
  1. +1 −1 lgsm/functions/command_monitor.sh
  2. +1 −1 lgsm/functions/core_messages.sh
  3. +16 −4 lgsm/functions/fix_ark.sh
@@ -21,7 +21,7 @@ fn_monitor_check_lockfile(){
fn_print_error_eol_nl
fn_script_log_error "Checking lockfile: No lockfile found: ERROR"
fn_sleep_time
echo -e " * Start ${selfname} to run monitor."
echo -en "* Start ${selfname} to run monitor."
core_exit.sh
fi

@@ -353,7 +353,7 @@ fn_print_error_eol(){
}

fn_print_error_eol_nl(){
echo -en "${red}ERROR${default}"
echo -e "${red}ERROR${default}"
}

# WARN
@@ -6,19 +6,31 @@

# removes the symlink if broken. fixes issue with older versions of LinuxGSM linking to /home/arkserver/steamcmd
# rather than ${HOME}/.steam. This fix could be deprecated eventually.
if [ ! -e "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux" ]||[ ! -e "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps" ]; then
if [ ! -e "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux" ]; then
fixname="broken steamcmd symlink"
fn_fix_msg_start
rm -f "${serverfiles:?}/Engine/Binaries/ThirdParty/SteamCMD/Linux"
rm -f "${serverfiles:?}/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps"
fn_fix_msg_end
fi

if [ ! -e "${HOME}/.steam/steamcmd/steamapps" ]; then
fixname="broken steamcmd symlink"
fn_fix_msg_start
rm -f "${HOME}/.steam/steamcmd/steamapps"
fn_fix_msg_end
fi

# Symlinking the SteamCMD directory into the correct ARK directory so that the mods auto-management will work.
if [ ! -d "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux" ]||[ ! -d "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps" ]; then
if [ ! -d "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux" ]; then
fixname="steamcmd symlink"
fn_fix_msg_start
ln -s "${HOME}/.steam/steamcmd" "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux"
ln -s "${HOME}/Steam/steamapps" "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps"
fn_fix_msg_end
fi

if [ ! -d "${HOME}/.steam/steamcmd/steamapps" ]; then
fixname="steamcmd symlink"
fn_fix_msg_start
ln -s "${HOME}/Steam/steamapps" "${HOME}/.steam/steamcmd/steamapps"
fn_fix_msg_end
fi

0 comments on commit 80c4439

Please sign in to comment.
You can’t perform that action at this time.