| @@ -1,2 +1,3 @@ | |||
| conf | |||
| core/certbot | |||
| nginx-error.conf | |||
| @@ -16,7 +16,9 @@ echo "$output" \ | |||
| | tee "$out" >/dev/null | |||
| if ! sudo nginx -t; then | |||
| cp "$out" "../nginx-error.conf" | |||
| echo "Reverting to backup file." | |||
| echo "Bad file saved to nginx-error.conf." | |||
| mv "$out.bak" "$out" | |||
| else | |||
| echo "Press enter to restart nginx." | |||