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:
parent
bd692d4d90
commit
25b746bee2
2 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
path="/path" (PATH)
|
path="/path" (PATH)
|
||||||
username="john"
|
username="john"
|
||||||
name="john"
|
name="john"
|
||||||
email="anmol@datamol.in"
|
email="admin@example.com"
|
||||||
password="password"
|
password="password"
|
||||||
# is_public="Yes" (PUBLIC|public=Yes|private=No)
|
# is_public="Yes" (PUBLIC|public=Yes|private=No)
|
||||||
is_public=1 (PUBLIC|public=1|private=0)
|
is_public=1 (PUBLIC|public=1|private=0)
|
||||||
|
|
|
@ -21,6 +21,7 @@ domain=$(ynh_app_setting_get "$app" domain)
|
||||||
path_url=$(ynh_app_setting_get "$app" path)
|
path_url=$(ynh_app_setting_get "$app" path)
|
||||||
is_public=$(ynh_app_setting_get "$app" is_public)
|
is_public=$(ynh_app_setting_get "$app" is_public)
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
# ENSURE DOWNWARD COMPATIBILITY
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -45,6 +46,9 @@ fi
|
||||||
# Normalize the URL path syntax
|
# Normalize the URL path syntax
|
||||||
path_url=$(ynh_normalize_url_path $path_url)
|
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
|
# Move old app dir
|
||||||
sudo mv ${final_path} ${final_path}.old
|
sudo mv ${final_path} ${final_path}.old
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue