From 039170d686973d46643526372a44816858aa69e3 Mon Sep 17 00:00:00 2001 From: farvardin Date: Wed, 7 Feb 2024 14:51:39 +0100 Subject: [PATCH] fix upgrade / remove color restoration --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 499eaca..ee82cfa 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,7 +18,8 @@ ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 if [[ -z "${password:-}" ]] || [[ -z "${color:-}" ]] || [[ -z "${wiki:-}" ]]; then password=$( grep -oP '^\$PASSWORD = sha1\(\"\K.*(?=\"\);$)' "$install_dir/config.php") wiki=$( grep -oP '^\$WIKI_TITLE = '"'\K.*(?=';)" "$install_dir/config.php") - color=$(grep -A1 'For YunoHost config' "$install_dir/templates/minimaxing/minimaxing.css" | grep -oP '^/\* @fg: #\K.*(?=;)'|| true) + # color=$(grep -A1 'For YunoHost config' "$install_dir/templates/minimaxing/minimaxing.css" | grep -oP '^/\* @fg: #\K.*(?=;)'|| true) + color=787878 if [[ -z "$password" ]] || [[ -z "$wiki" ]] || [[ -z "$color" ]]; then yunohost_app="yunohost app"