From cefe42d94fa951a217ae6ba171c3c8eab32efe83 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Tue, 10 Sep 2019 22:23:20 +0200 Subject: [PATCH] change if statement (#937) Signed-off-by: enoch85 --- nextcloud_update.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index d16fc353..214ff592 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -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