change if statement (#937)

Signed-off-by: enoch85 <github@hanssonit.se>
This commit is contained in:
Daniel Hansson 2019-09-10 22:23:20 +02:00 committed by GitHub
parent 55b72dcf43
commit cefe42d94f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,9 +40,10 @@ fi
if is_this_installed mysql-common
then
apt-mark hold mysql*
elif is_this_installed mariadb-common
then
apt-mark hold mariadb*
if is_this_installed mariadb-common
then
apt-mark hold mariadb*
fi
fi
# Move all logs to new dir (2019-09-04)
@ -72,13 +73,14 @@ export DEBIAN_FRONTEND=noninteractive ; apt dist-upgrade -y -o Dpkg::Options::="
if is_this_installed mysql-common
then
apt-mark unhold mysql*
print_text_in_color "$ICyan" "If you want to upgrade MariaDB, please run 'sudo apt update && sudo apt dist-upgrade -y'"
sleep 2
elif is_this_installed mariadb-common
then
apt-mark unhold mariadb*
print_text_in_color "$ICyan" "If you want to upgrade MariaDB, please run 'sudo apt update && sudo apt dist-upgrade -y'"
print_text_in_color "$ICyan" "If you want to upgrade MySQL/MariaDB, please run 'sudo apt update && sudo apt dist-upgrade -y'"
sleep 2
if is_this_installed mariadb-common
then
apt-mark unhold mariadb*
print_text_in_color "$ICyan" "If you want to upgrade MariaDB, please run 'sudo apt update && sudo apt dist-upgrade -y'"
sleep 2
fi
fi
# Update Netdata