From 01c1aead0f3735586141c5c869675988970c3a99 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 7 Oct 2018 15:05:51 +0200 Subject: [PATCH] install_mysql.sh: some minor fixes. --- install_mysql.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install_mysql.sh b/install_mysql.sh index 8b19bb3..c790140 100755 --- a/install_mysql.sh +++ b/install_mysql.sh @@ -940,7 +940,17 @@ elif [[ -x "$(realpath /etc/init.d/mysql)" ]]; then fi if [[ -z "$MYSQL_INIT_SCRIPT" ]] && [[ -z "$MYSQLD_SERVICE_FILE" ]] && $UPDATE_MYSQL ; then - fatal "Kein start/stop Sevice File/ Init Script gefunden.." + error "Kein start/stop Sevice File/ Init Script gefunden.." + + echononl "continue anyway [yes/no]: " + read OK + OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + echononl "Wrong entry! - repeat [yes/nno]: " + read OK + done + [[ $OK = "yes" ]] || fatal "Abbruch durch User" + fi