Jelajahi Sumber

Update 1.4.0.sh

Alexandros Ioannides 5 tahun lalu
induk
melakukan
e7ec3fa40e
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 6 6
      install/upgrade/versions/1.4.0.sh

+ 6 - 6
install/upgrade/versions/1.4.0.sh

@@ -6,16 +6,16 @@
 #######                      Place additional commands below.                   #######
 #######                      Place additional commands below.                   #######
 #######################################################################################
 #######################################################################################
 
 
-# Allow Fast CGI Cache to be enabled for Nginx Standalone
+# Add support for nginx FastCGI cache (standalone)
 if [ -e "/etc/nginx/nginx.conf" ]; then
 if [ -e "/etc/nginx/nginx.conf" ]; then
     check=$(cat /etc/nginx/nginx.conf | grep 'fastcgi_cache_path');
     check=$(cat /etc/nginx/nginx.conf | grep 'fastcgi_cache_path');
     if [ -z "$check" ]; then 
     if [ -z "$check" ]; then 
-        echo "[ * ] Enabling Nginx FastCGI cache support..."
-        sed  -i 's/# Cache bypass/# FastCGI Cache settings\n    fastcgi_cache_path \/var\/cache\/nginx\/php-fpm levels=2\n    keys_zone=fcgi_cache:10m inactive=60m max_size=1024m;\n    fastcgi_cache_key \"$host$request_uri $cookie_user\";\n    fastcgi_temp_path  \/var\/cache\/nginx\/temp;\n    fastcgi_ignore_headers Expires Cache-Control;\n    fastcgi_cache_use_stale error timeout invalid_header;\n    fastcgi_cache_valid any 1d;\n\n    # Cache bypass/g' /etc/nginx/nginx.conf
+        echo "[ * ] Enabling nginx FastCGI cache support..."
+        sed  -i 's/# Cache bypass/# FastCGI cache\n    fastcgi_cache_path \/var\/cache\/nginx\/micro levels=1:2 keys_zone=microcache:10m max_size=1024m inactive=30m;\n    fastcgi_cache_key \"$scheme$request_method$host$request_uri\";\n    fastcgi_cache_methods  GET HEAD;\n    fastcgi_cache_use_stale updating error timeout invalid_header http_500 http_503;\n    fastcgi_ignore_headers Cache-Control Expires Set-Cookie;\n\n    # Cache bypass/g' /etc/nginx/nginx.conf
     fi
     fi
 fi
 fi
 
 
-# Populating HELO/SMTP Banner for existing ip's
+# Populating HELO/SMTP Banner for existing IPs
 if [ "$MAIL_SYSTEM" == "exim4" ]; then
 if [ "$MAIL_SYSTEM" == "exim4" ]; then
     source $HESTIA/func/ip.sh
     source $HESTIA/func/ip.sh
 
 
@@ -109,7 +109,7 @@ fi
 # New configuration value for enforcing subdomain ownership
 # New configuration value for enforcing subdomain ownership
 check=$(cat $HESTIA/conf/hestia.conf | grep 'ENFORCE_SUBDOMAIN_OWNERSHIP');
 check=$(cat $HESTIA/conf/hestia.conf | grep 'ENFORCE_SUBDOMAIN_OWNERSHIP');
 if [ -z "$check" ]; then 
 if [ -z "$check" ]; then 
-    echo "[ * ] Setting ENFORCE_SUBDOMAIN_OWNERSHIP to no"
+    echo "[ * ] Setting ENFORCE_SUBDOMAIN_OWNERSHIP to no..."
     echo "ENFORCE_SUBDOMAIN_OWNERSHIP='no'" >> $HESTIA/conf/hestia.conf
     echo "ENFORCE_SUBDOMAIN_OWNERSHIP='no'" >> $HESTIA/conf/hestia.conf
 fi
 fi
 
 
@@ -117,7 +117,7 @@ fi
 if [ "$api" = "yes" ]; then
 if [ "$api" = "yes" ]; then
     check=$(cat $HESTIA/conf/hestia.conf | grep 'API_ALLOWED_IP');
     check=$(cat $HESTIA/conf/hestia.conf | grep 'API_ALLOWED_IP');
     if [ -z "$check" ]; then 
     if [ -z "$check" ]; then 
-        echo "[ * ] Setting API_ALLOWED_IP to allow-all"
+        echo "[ * ] Setting API_ALLOWED_IP to allow-all..."
         echo "API_ALLOWED_IP='allow-all'" >> $HESTIA/conf/hestia.conf
         echo "API_ALLOWED_IP='allow-all'" >> $HESTIA/conf/hestia.conf
     fi
     fi
 else
 else