1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/UMS_ynh.git synced 2024-10-01 13:35:01 +02:00

Merge pull request #2 from YunoHost-Apps/testing

Init change_url
This commit is contained in:
Krakinou 2021-04-25 20:28:40 +02:00 committed by GitHub
commit 544703e9ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -15,8 +15,8 @@
# upgrade=0 from_commit=CommitHash
backup_restore=1
multi_instance=0
port_already_use=0
change_url=0
port_already_use=1
change_url=1
;;; Options
Email=
Notification=none

View file

@ -21,6 +21,7 @@ new_path=$YNH_APP_NEW_PATH
app=$YNH_APP_INSTANCE_NAME
#=================================================
# LOAD SETTINGS
#=================================================
@ -28,6 +29,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
# Needed for helper "ynh_add_nginx_config"
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
port_web=$(ynh_app_setting_get --app=$app --key=port_web)
# Add settings here as needed by your application
#db_name=$(ynh_app_setting_get --app=$app --key=db_name)
@ -92,7 +94,7 @@ then
domain="$old_domain"
path_url="$new_path"
# Create a dedicated NGINX config
ynh_add_nginx_config
ynh_add_nginx_config "port_web"
fi
# Change the domain for NGINX