install_mysql.sh: some minor fixes.

This commit is contained in:
Christoph 2018-10-07 15:05:51 +02:00
parent 5212593886
commit 01c1aead0f

View File

@ -940,7 +940,17 @@ elif [[ -x "$(realpath /etc/init.d/mysql)" ]]; then
fi fi
if [[ -z "$MYSQL_INIT_SCRIPT" ]] && [[ -z "$MYSQLD_SERVICE_FILE" ]] && $UPDATE_MYSQL ; then 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 fi