reverseproxy_ynh/scripts/upgrade

36 lines
839 B
Text
Raw Normal View History

2018-05-26 10:27:01 +02:00
2016-06-20 23:43:51 +02:00
#!/bin/bash
2018-05-26 10:27:01 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2023-01-08 14:33:31 +01:00
source _common.sh
2018-05-26 10:27:01 +02:00
source /usr/share/yunohost/helpers
2019-05-15 18:42:44 +02:00
#=================================================
# REVERSEPROXY_YNH
2019-05-15 18:42:44 +02:00
#=================================================
2023-01-08 14:33:31 +01:00
# Validate proxy destination
rp_validate_proxy_path
# Validate assets_path
rp_validate_assets_path
2023-11-25 19:16:11 +01:00
# Special case for "/" path
rp_handle_webroot
2018-05-26 10:27:01 +02:00
2023-01-08 14:33:31 +01:00
# Configure nginx
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
2023-11-25 19:20:44 +01:00
ynh_add_nginx_config
2021-01-23 15:21:17 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Upgrade of $app completed" --last