Commit 759db728 authored by root's avatar root

/*upgrade*/ stop nginx before changing the nginx files

parent 4a59fb73
......@@ -46,11 +46,12 @@ ynh_print_info "Ensuring backup compatibility"
# Pleroma sets the headers so ynh doesn't need to do it for us
if (cat "/etc/nginx/conf.d/$domain.d/$app.conf" | grep 'add_header')
systemctl stop nginx
cp -rf "../conf/nginx.conf" "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_replace_string "{APP}" "$app" "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_replace_string "{PORT}" "$port" "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_replace_string "add_header" "# add_header" "/etc/nginx/conf.d/$domain.conf"
systemctl reload nginx
systemctl start nginx
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