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.