1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lstu_ynh.git synced 2024-09-03 19:36:12 +02:00

change_url: ynh_print_info

This commit is contained in:
Kayou 2019-02-21 12:41:58 +01:00 committed by GitHub
parent af3dff4539
commit e9a50a2920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ app=$YNH_APP_INSTANCE_NAME
#=================================================
# LOAD SETTINGS
#=================================================
ynh_print_info "Loading installation settings..."
# Needed for helper "ynh_add_nginx_config"
final_path=$(ynh_app_setting_get $app final_path)
@ -68,6 +69,7 @@ fi
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_print_info "Updating nginx web server configuration..."
nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf
@ -98,6 +100,7 @@ fi
#=================================================
# SETUP LSTU
#=================================================
ynh_print_info "Updating lstu configuration..."
domain="$new_domain"
path_url="$new_path"
@ -133,5 +136,12 @@ ynh_systemd_action -n $app -a reload -l "Starting hot deployment for Hypnotoad s
#=================================================
# RELOAD NGINX
#=================================================
ynh_print_info "Reloading nginx web server..."
systemctl reload nginx
systemctl reload nginx
#=================================================
# END OF SCRIPT
#=================================================
ynh_print_info "Change of URL completed for $app"