Commit 453ba455 authored by Spctrl's avatar Spctrl

restore: don't do nginx yet

parent 0d662f87
......@@ -44,15 +44,15 @@ ynh_abort_if_errors
ynh_print_info "Ensuring backwards compatibility"
# Pleroma sets the headers so we don't need to do it
if (cat "/etc/nginx/conf.d/$domain.d/$app.conf" | grep 'add_header')
then
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"
# TODO: The following line seems to break the whole thing. First make it work on install, then check this out.
#ynh_replace_string "add_header" "# add_header" "/etc/nginx/conf.d/$domain.conf"
systemctl reload nginx
fi
#if (cat "/etc/nginx/conf.d/$domain.d/$app.conf" | grep 'add_header')
#then
# TODO: The following lines seems to break the whole thing. First make it work on install, then check this out.
#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
#fi
#=================================================
# STANDARD UPGRADE STEPS
......
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