From 365e6ff0bf2a80755857bdafe8ff1b14aa1e9b93 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 25 Jun 2016 17:57:34 +0200 Subject: [PATCH] finalpath absent --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index f9b0e95..6cabcf4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -16,6 +16,10 @@ is_public=$(sudo yunohost app setting $app is_public) final_path=$(sudo yunohost app setting $app final_path) db_pwd=$(sudo yunohost app setting $app mysqlpwd) +if [ -z $final_path ]; then # Si final_path n'est pas renseigné dans app setting + final_path=/var/www/$app + sudo yunohost app setting $app final_path -v $final_path +fi CHECK_PATH # Vérifie et corrige la syntaxe du path.