Skip to content

Commit c957b2a

Browse files
authored
fix(av): fix will trigger on start as well (#4123)
this should resolve the steamclient bug
1 parent 651edde commit c957b2a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lgsm/functions/fix.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ if [ "${commandname}" != "INSTALL" ] && [ -z "${fixbypass}" ]; then
4343
fix_armar.sh
4444
elif [ "${shortname}" == "ark" ]; then
4545
fix_ark.sh
46+
elif [ "${shortname}" == "av" ]; then
47+
fix_av.sh
4648
elif [ "${shortname}" == "bt" ]; then
4749
fix_bt.sh
4850
elif [ "${shortname}" == "bo" ]; then

lgsm/functions/fix_av.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
99

1010
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64"
1111

12-
if [ "${postinstall}" == "1" ]; then
12+
# Generates the server config if it doesn't exist.
13+
if [ ! -f "${servercfgfullpath}" ]; then
1314
startparameters="--datapath ${avdatapath} --galaxy-name ${selfname} --init-folders-only"
1415
fn_print_information "starting ${gamename} server to generate configs."
1516
fn_sleep_time
16-
# go to the executeable dir and start the init of the server
17-
cd "${systemdir}" || return 2
18-
"${executabledir}/${executable}" ${startparameters}
17+
cd "${systemdir}" || exit
18+
eval "${executable} ${startparameters}"
1919
fi

0 commit comments

Comments
 (0)