Update scripts/change_url
This commit is contained in:
parent
76620cdcce
commit
06fb2582de
1 changed files with 3 additions and 11 deletions
|
@ -1,9 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## this script is only run if actual change to domain/path is detected, if you're here either $domain or $path changed
|
|
||||||
## new location is available via $domain and $path (or $new_domain and $new_path variables if you want to be explicit)
|
|
||||||
## old values are available via, you guessed it, $old_domain and $old_path
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -14,6 +10,7 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# STOP SYSTEMD SERVICE
|
# STOP SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression "Stopping $app's systemd service..."
|
ynh_script_progression "Stopping $app's systemd service..."
|
||||||
|
|
||||||
ynh_systemctl --service="$app" --action="stop"
|
ynh_systemctl --service="$app" --action="stop"
|
||||||
|
@ -21,20 +18,15 @@ ynh_systemctl --service="$app" --action="stop"
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY URL IN NGINX CONF
|
# MODIFY URL IN NGINX CONF
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression "Updating NGINX web server configuration..."
|
ynh_script_progression "Updating NGINX web server configuration..."
|
||||||
|
|
||||||
# this will most likely adjust NGINX config correctly
|
|
||||||
ynh_config_change_url_nginx
|
ynh_config_change_url_nginx
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SPECIFIC MODIFICATIONS
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
## do any changes to files that reference specific installation domain/path, i.e. regenerate configs etc
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression "Starting $app's systemd service..."
|
ynh_script_progression "Starting $app's systemd service..."
|
||||||
|
|
||||||
ynh_systemctl --service="$app" --action="start"
|
ynh_systemctl --service="$app" --action="start"
|
||||||
|
|
Loading…
Reference in a new issue