From 0c926f1b7ad5a733c19e8cdc15844ee69d86b278 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Wed, 20 Dec 2017 21:14:35 +0000
Subject: [PATCH] Tidying

---
 src/freedombone-app-akaunting | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/freedombone-app-akaunting b/src/freedombone-app-akaunting
index 5c0538fce..4562f76ad 100755
--- a/src/freedombone-app-akaunting
+++ b/src/freedombone-app-akaunting
@@ -304,24 +304,19 @@ function install_akaunting {
 
         echo '  add_header Strict-Transport-Security max-age=15768000;' >> $akaunting_nginx_site
         echo '' >> $akaunting_nginx_site
-        echo '  # Logs' >> $akaunting_nginx_site
         echo '  access_log /dev/null;' >> $akaunting_nginx_site
         echo '  error_log /dev/null;' >> $akaunting_nginx_site
         echo '' >> $akaunting_nginx_site
-        echo '  # Root' >> $akaunting_nginx_site
         echo "  root /var/www/$AKAUNTING_DOMAIN_NAME/htdocs;" >> $akaunting_nginx_site
         echo '' >> $akaunting_nginx_site
-        echo '  # Index' >> $akaunting_nginx_site
         echo '  index index.php;' >> $akaunting_nginx_site
         echo '' >> $akaunting_nginx_site
-        echo '  # PHP' >> $akaunting_nginx_site
         echo '  location ~ \.php {' >> $akaunting_nginx_site
         echo '    include snippets/fastcgi-php.conf;' >> $akaunting_nginx_site
         echo '    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;' >> $akaunting_nginx_site
         echo '    fastcgi_read_timeout 30;' >> $akaunting_nginx_site
         echo '  }' >> $akaunting_nginx_site
         echo '' >> $akaunting_nginx_site
-        echo '  # Location' >> $akaunting_nginx_site
         echo '  location / {' >> $akaunting_nginx_site
         function_check nginx_limits
         nginx_limits $AKAUNTING_DOMAIN_NAME '15m'
@@ -355,17 +350,14 @@ function install_akaunting {
     echo '' >> $akaunting_nginx_site
     echo "  root /var/www/$AKAUNTING_DOMAIN_NAME/htdocs;" >> $akaunting_nginx_site
     echo '' >> $akaunting_nginx_site
-    echo '  # Index' >> $akaunting_nginx_site
     echo '  index index.php;' >> $akaunting_nginx_site
     echo '' >> $akaunting_nginx_site
-    echo '  # PHP' >> $akaunting_nginx_site
     echo '  location ~ \.php {' >> $akaunting_nginx_site
     echo '    include snippets/fastcgi-php.conf;' >> $akaunting_nginx_site
     echo '    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;' >> $akaunting_nginx_site
     echo '    fastcgi_read_timeout 30;' >> $akaunting_nginx_site
     echo '  }' >> $akaunting_nginx_site
     echo '' >> $akaunting_nginx_site
-    echo '  # Location' >> $akaunting_nginx_site
     echo '  location / {' >> $akaunting_nginx_site
     function_check nginx_limits
     nginx_limits $AKAUNTING_DOMAIN_NAME '15m'
@@ -379,7 +371,6 @@ function install_akaunting {
     echo '  location ~ /\.(ht|git) {' >> $akaunting_nginx_site
     echo '    deny all;' >> $akaunting_nginx_site
     echo '  }' >> $akaunting_nginx_site
-    echo '' >> $akaunting_nginx_site
     echo '}' >> $akaunting_nginx_site
 
     function_check configure_php
-- 
GitLab