Fix version and server type failsafe triggering on server install
This commit is contained in:
parent
e31a66529a
commit
8fb2cf7488
@ -36,6 +36,7 @@ function check_updates {
|
|||||||
download_build=$latest_build
|
download_build=$latest_build
|
||||||
update_version=true
|
update_version=true
|
||||||
update_build=true
|
update_build=true
|
||||||
|
return
|
||||||
else
|
else
|
||||||
echo Checking for updates...
|
echo Checking for updates...
|
||||||
fi
|
fi
|
||||||
|
@ -37,6 +37,9 @@ function check_updates {
|
|||||||
download_build=$latest_build
|
download_build=$latest_build
|
||||||
update_version=true
|
update_version=true
|
||||||
update_build=true
|
update_build=true
|
||||||
|
return
|
||||||
|
else
|
||||||
|
echo Checking for updates...
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if $build is empty
|
# Check if $build is empty
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
EXTRA_SCRIPTS_VERSION="v2.1.1"
|
EXTRA_SCRIPTS_VERSION="v2.1.2"
|
||||||
|
8
msman.sh
8
msman.sh
@ -8,7 +8,7 @@ set -e
|
|||||||
# and acknowledge the original script and author. #
|
# 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
|
# You shouldn't need to change anything in this file
|
||||||
@ -477,8 +477,10 @@ function main {
|
|||||||
get_existing_server
|
get_existing_server
|
||||||
|
|
||||||
# Check if the server type differs from the one in the config
|
# Check if the server type differs from the one in the config
|
||||||
if [[ $existing_server_type != $server_type ]]; then
|
if [[ $server_file != false ]]; then
|
||||||
ask_server_differs
|
if [[ $existing_server_type != $server_type ]]; then
|
||||||
|
ask_server_differs
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if the version and build are valid
|
# Check if the version and build are valid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user