1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00

Added final_path=/var/www/

This commit is contained in:
anmol26s 2017-08-02 13:54:39 +05:30
parent bd692d4d90
commit 25b746bee2
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -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