From e2883866053b2a8bbd1d7e50bdd5660a5c2a6d41 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Thu, 3 Apr 2014 15:34:56 +0200 Subject: [PATCH] support previous admin_user setting --- scripts/upgrade | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index fbcf2b3..92de2cf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -8,6 +8,13 @@ admin=$(sudo yunohost app setting phpmyadmin admin) # Remove trailing "/" for next commands path=${path%/} +# In older version, the admin setting was admin_user +if [[ -z "$admin" ]]; then + admin=$(sudo yunohost app setting phpmyadmin admin_user) + sudo yunohost app setting phpmyadmin admin_user -d + sudo yunohost app setting phpmyadmin admin -v $admin +fi + # Copy files to the right place final_path=/var/www/phpmyadmin version=$(cat upstream_version)