1.0.1.sh 883 B

12345678910111213141516
  1. #!/bin/sh
  2. # Hestia Control Panel upgrade script for target version 1.0.1
  3. #######################################################################################
  4. ####### Place additional commands below. #######
  5. #######################################################################################
  6. # Remove global options from nginx.conf to prevent conflicts with other web packages
  7. # and remove OCSP SSL stapling from global configuration as it has moved to per-domain availability in this release.
  8. if [ -e /etc/nginx/nginx.conf ]; then
  9. sed -i "/add_header X-Frame-Options SAMEORIGIN;/d" /etc/nginx/nginx.conf
  10. sed -i "/add_header X-Content-Type-Options nosniff;/d" /etc/nginx/nginx.conf
  11. sed -i "/ssl_stapling on;/d" /etc/nginx/nginx.conf
  12. sed -i "/ssl_stapling_verify on;/d" /etc/nginx/nginx.conf
  13. fi