From 167e44112b7ddf477e13eda3e3ddbb92584b83e1 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Tue, 23 May 2017 13:27:52 +0200 Subject: [PATCH] add missning - (#233) --- nextcloud_update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index ff3b94e5..35832143 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -124,7 +124,7 @@ LOGIN cat "$MYCNF" exit 1 fi -elif [ z $MYSQLMYCNFPASS ] && [ -f /var/mysql_password.txt ] +elif [ -z "$MYSQLMYCNFPASS" ] && [ -f /var/mysql_password.txt ] then regressionpw=$(cat /var/mysql_password.txt) { @@ -132,6 +132,10 @@ then echo "password='$regressionpw'" } >> "$MYCNF" rm /var/mysql_password.txt + echo "Please restart the upgrade process, we fixed the password file $MYCNF." + echo "Your password is:" + cat "$MYCNF" + exit 1 fi echo "Backing up files and upgrading to Nextcloud $NCVERSION in 10 seconds..."