Fix version and server type failsafe triggering on server install

This commit is contained in:
Jiří Štefka 2023-03-02 21:31:28 +01:00
parent e31a66529a
commit 8fb2cf7488
4 changed files with 10 additions and 4 deletions

@ -36,6 +36,7 @@ function check_updates {
download_build=$latest_build
update_version=true
update_build=true
return
else
echo Checking for updates...
fi

@ -37,6 +37,9 @@ function check_updates {
download_build=$latest_build
update_version=true
update_build=true
return
else
echo Checking for updates...
fi
# Check if $build is empty

@ -1,3 +1,3 @@
#!/bin/bash
EXTRA_SCRIPTS_VERSION="v2.1.1"
EXTRA_SCRIPTS_VERSION="v2.1.2"

@ -8,7 +8,7 @@ set -e
# and acknowledge the original script and author. #
#############################################################################################################
CURRENT_SCRIPT_VERSION="v2.1.1"
CURRENT_SCRIPT_VERSION="v2.1.2"
# --------------------------------------------------
# You shouldn't need to change anything in this file
@ -477,9 +477,11 @@ function main {
get_existing_server
# Check if the server type differs from the one in the config
if [[ $server_file != false ]]; then
if [[ $existing_server_type != $server_type ]]; then
ask_server_differs
fi
fi
# Check if the version and build are valid
check_version_valid