Skip to content

Commit db0e028

Browse files
authored
Merge pull request #2556 from GameServerManagers/feature/pstbs-deps
fix(install): pstbs and wurm dependency fix feat(install): add tar to dependency checking
2 parents 7059d9a + 3d9f365 commit db0e028

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

lgsm/functions/check_deps.sh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ fn_deps_build_debian(){
335335
array_deps_missing=()
336336

337337
# LinuxGSM requirements.
338-
array_deps_required=( curl wget ca-certificates file bsdmainutils util-linux python3 bzip2 gzip unzip binutils bc jq )
338+
array_deps_required=( curl wget ca-certificates file bsdmainutils util-linux python3 tar bzip2 gzip unzip binutils bc jq )
339339

340340
# All servers except ts3 require tmux.
341341
if [ "${shortname}" != "ts3" ]; then
@@ -439,6 +439,8 @@ fn_deps_build_debian(){
439439
# Wurm: Unlimited
440440
elif [ "${shortname}" == "wurm" ]; then
441441
array_deps_required+=( xvfb )
442+
elif [ "${shortname}" == "pstbs" ]; then
443+
array_deps_required+=( libgconf-2-4 )
442444
fi
443445
fn_deps_email
444446
fn_check_loop
@@ -451,17 +453,17 @@ fn_deps_build_redhat(){
451453
# LinuxGSM requirements.
452454
# CentOS
453455
if [ "${distroversion}" == "6" ]; then
454-
array_deps_required=( epel-release curl wget util-linux-ng python file gzip bzip2 unzip binutils bc jq )
456+
array_deps_required=( epel-release curl wget util-linux-ng python file tar gzip bzip2 unzip binutils bc jq )
455457
elif [ "${distroversion}" == "7" ]; then
456-
array_deps_required=( epel-release curl wget util-linux python3 file gzip bzip2 unzip binutils bc jq )
458+
array_deps_required=( epel-release curl wget util-linux python3 file tar gzip bzip2 unzip binutils bc jq )
457459
elif [ "${distroversion}" == "8" ]; then
458-
array_deps_required=( epel-release curl wget util-linux python36 file gzip bzip2 unzip binutils bc jq )
460+
array_deps_required=( epel-release curl wget util-linux python36 file tar gzip bzip2 unzip binutils bc jq )
459461
elif [ "${distroid}" == "fedora" ]; then
460-
array_deps_required=( curl wget util-linux python3 file gzip bzip2 unzip binutils bc jq )
462+
array_deps_required=( curl wget util-linux python3 file tar gzip bzip2 unzip binutils bc jq )
461463
elif [[ "${distroname}" == *"Amazon Linux AMI"* ]]; then
462-
array_deps_required=( curl wget util-linux python3 file gzip bzip2 unzip binutils bc jq )
464+
array_deps_required=( curl wget util-linux python3 file tar gzip bzip2 unzip binutils bc jq )
463465
else
464-
array_deps_required=( curl wget util-linux python3 file gzip bzip2 unzip binutils bc jq )
466+
array_deps_required=( curl wget util-linux python3 file tar gzip bzip2 unzip binutils bc jq )
465467
fi
466468

467469
# All servers except ts3 require tmux.
@@ -524,7 +526,7 @@ fn_deps_build_redhat(){
524526
else
525527
array_deps_required+=( java-1.8.0-openjdk rng-tools )
526528
fi
527-
# Project Zomboid & Minecraft
529+
# Minecraft
528530
elif [ "${shortname}" == "pz" ]; then
529531
javaversion=$(java -version 2>&1 | grep "version")
530532
if [ "${javaversion}" ]; then
@@ -555,6 +557,10 @@ fn_deps_build_redhat(){
555557
# Unturned
556558
elif [ "${shortname}" == "unt" ]; then
557559
array_deps_required+=( mono-complete )
560+
elif [ "${shortname}" == "wurm" ]; then
561+
array_deps_required+=( xorg-x11-server-Xvfb )
562+
elif [ "${shortname}" == "pstbs" ]; then
563+
array_deps_required+=( GConf2 )
558564
fi
559565
fn_deps_email
560566
fn_check_loop

0 commit comments

Comments
 (0)