diff --git a/src/freedombone-app-akaunting b/src/freedombone-app-akaunting index 5c0538fc..4562f76a 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