Commit e84949fc authored by HgO's avatar HgO
Browse files

Merge branch '17-remove-folders-before-reloading-nginx' into 'unstable'

Remove folders before reloading nginx

See merge request Neutrinet/neutrinet_ynh!28
parents 403d2c27 cd3bc0b9
......@@ -20,7 +20,7 @@ path_url=$(ynh_app_setting_get $app path_url)
app_user=$(ynh_app_setting_get $app app_user)
www_path=$(ynh_app_setting_get $app www_path)
opt_path=$(ynh_app_setting_get $app opt_path)
nginx_path=/etc/nginx/conf.d/$domain.d/$app.conf
nginx_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# STANDARD REMOVE
......@@ -28,16 +28,18 @@ nginx_path=/etc/nginx/conf.d/$domain.d/$app.conf
ynh_script_progression "Removing static site..."
rm -rf $www_path
rm -rf "$www_path"
rm -f "$nginx_path"
nginx -tq
ynh_systemd_action nginx reload
ynh_script_progression "Removing automatic vpn certificate renewal..."
rm -rf $opt_path
rm -rf /etc/cron.daily/$app-renew-cert
rm -rf "$opt_path"
rm -rf "/etc/cron.daily/$app-renew-cert"
ynh_script_progression "Reloading Nginx..."
nginx -tq
ynh_systemd_action nginx reload
#=================================================
# REMOVE DEPENDENCIES
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment