Browse Source
fix(ark): fix broken steamcmd link preventing mods from working (#2756 )
* fix(steamcmd): wont fail to start if steamcmd dependency missing
removes the symlink if broken. fixes issue with older versions of LinuxGSM linking to /home/arkserver/steamcmd rather than ${HOME}/.steam.
pull/2758/head
Daniel Gibbs
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
14 additions and
4 deletions
lgsm/functions/fix_ark.sh
@ -4,11 +4,21 @@
# Website: https://linuxgsm.com
# Description: Resolves various issues with ARK: Survival Evolved.
# 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 " ] ; then
ln -s " ${ HOME } /.steam/steamcmd " " ${ serverfiles } /Engine/Binaries/ThirdParty/SteamCMD/Linux "
# 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
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 [ ! -d " ${ serverfiles } /Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps " ] ; then
# 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
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