|
@ -4,12 +4,19 @@ |
|
|
# Website: https://linuxgsm.com |
|
|
# Website: https://linuxgsm.com |
|
|
# Description: Resolves various issues with ARK: Survival Evolved. |
|
|
# Description: Resolves various issues with ARK: Survival Evolved. |
|
|
|
|
|
|
|
|
|
|
|
# removes mulitple appworkshop_346110.acf if found. |
|
|
|
|
|
steamappsfilewc=$(find ${HOME} -name appworkshop_346110.acf | wc -l) |
|
|
|
|
|
if [ "${steamappsfilewc}" -gt "1" ]; then |
|
|
|
|
|
fixname="multiple appworkshop acf files" |
|
|
|
|
|
fn_fix_msg_start |
|
|
|
|
|
find ${HOME} -name appworkshop_346110.acf -exec rm -f {} \; |
|
|
|
|
|
fn_fix_msg_end |
|
|
|
|
|
elif [ "${steamappsfilewc}" -eq "1" ]; then |
|
|
# Steam mods directory selecter |
|
|
# Steam mods directory selecter |
|
|
# This allows LinxuGSM to select either ~/.steam or ~/Steam. depending on what is being used |
|
|
# This allows LinxuGSM to select either ~/.steam or ~/Steam. depending on what is being used |
|
|
|
|
|
|
|
|
steamappsfile=$(find ${HOME} -name appworkshop_346110.acf) |
|
|
steamappsfile=$(find ${HOME} -name appworkshop_346110.acf) |
|
|
steamappsdir=$(dirname "${steamappsfile}") |
|
|
steamappsdir=$(dirname "${steamappsfile}") |
|
|
steamappspath=$(cd ${steamappsdir};cd ../;pwd) |
|
|
steamappspath=$(cd "${steamappsdir}"|| return; cd ../;pwd) |
|
|
|
|
|
|
|
|
# removes the symlink if exists. |
|
|
# removes the symlink if exists. |
|
|
# fixes issue with older versions of LinuxGSM linking to /home/arkserver/steamcmd |
|
|
# fixes issue with older versions of LinuxGSM linking to /home/arkserver/steamcmd |
|
@ -45,3 +52,4 @@ if [ ! -L "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps" ] |
|
|
ln -s "${steamappspath}" "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps" |
|
|
ln -s "${steamappspath}" "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps" |
|
|
fn_fix_msg_end |
|
|
fn_fix_msg_end |
|
|
fi |
|
|
fi |
|
|
|
|
|
fi |
|
|