Skip to content

Commit

Permalink
Fix error with missing steamcmdroot in install
Browse files Browse the repository at this point in the history
  • Loading branch information
klightspeed authored Sep 28, 2024
1 parent 4349b4b commit 1f8c89a
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions tools/arkmanager
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,18 @@ logprint(){
#
checkConfig() {
# SteamCMD configuration
# steamcmdroot
if [ ! -d "$steamcmdroot" ] ; then
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tYour SteamCMD root seems not valid." >&2
fi
# steamcmdexec
if [ ! -f "$steamcmdroot/$steamcmdexec" ] ; then
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tYour SteamCMD exec could not be found." >&2
if [ -n "$1" ] && [ "$1" != "install" ]; then
# steamcmdroot
if [ ! -d "$steamcmdroot" ] ; then
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tYour SteamCMD root seems not valid." >&2
fi

# steamcmdexec
if [ ! -f "$steamcmdroot/$steamcmdexec" ] ; then
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tYour SteamCMD exec could not be found." >&2
fi
fi

# steamcmd_user
if [ "$steamcmd_user" != "--me" ]; then
if ! getent passwd "$steamcmd_user" > /dev/null 2>&1 ; then
Expand All @@ -359,7 +363,7 @@ checkConfig() {
fi

# Environment configuration
if [ "$1" != "install" ] && [ -n "$instance" ]; then
if [ -n "$1" ] && [ "$1" != "install" ] && [ -n "$instance" ]; then
# arkserverexec
if [ -n "$arkserverroot" ] && [ ! -f "$arkserverroot/$arkserverexec" ] ; then
echo -e "[" "$YELLOW" "WARN" "$NORMAL" "]" "\tYour ARK server exec could not be found." >&2
Expand Down Expand Up @@ -1700,6 +1704,7 @@ doInstall() {
fi
fi
mkdir -p "$steamcmdroot"
cd "$steamcmdroot"
echo -n "Installing ARK server"
# install the server
Expand Down

0 comments on commit 1f8c89a

Please sign in to comment.