From 25b746bee2d22a5f86ff99488d68e963519a5a09 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 2 Aug 2017 13:54:39 +0530 Subject: [PATCH] Added final_path=/var/www/ --- check_process | 2 +- scripts/upgrade | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/check_process b/check_process index caa79b0..bc8552a 100644 --- a/check_process +++ b/check_process @@ -5,7 +5,7 @@ path="/path" (PATH) username="john" name="john" - email="anmol@datamol.in" + email="admin@example.com" password="password" # is_public="Yes" (PUBLIC|public=Yes|private=No) is_public=1 (PUBLIC|public=1|private=0) diff --git a/scripts/upgrade b/scripts/upgrade index 2509df4..e62bae5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -21,6 +21,7 @@ domain=$(ynh_app_setting_get "$app" domain) path_url=$(ynh_app_setting_get "$app" path) is_public=$(ynh_app_setting_get "$app" is_public) + #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -45,6 +46,9 @@ fi # Normalize the URL path syntax path_url=$(ynh_normalize_url_path $path_url) +final_path=/var/www/$app +test ! -e "$final_path" || ynh_die "This path already contains a folder" + # Move old app dir sudo mv ${final_path} ${final_path}.old