Bob Mottram 7 yıl önce
ebeveyn
işleme
0c926f1b7a
1 değiştirilmiş dosya ile 0 ekleme ve 9 silme
  1. 0
    9
      src/freedombone-app-akaunting

+ 0
- 9
src/freedombone-app-akaunting Dosyayı Görüntüle

@@ -304,24 +304,19 @@ function install_akaunting {
304 304
 
305 305
         echo '  add_header Strict-Transport-Security max-age=15768000;' >> $akaunting_nginx_site
306 306
         echo '' >> $akaunting_nginx_site
307
-        echo '  # Logs' >> $akaunting_nginx_site
308 307
         echo '  access_log /dev/null;' >> $akaunting_nginx_site
309 308
         echo '  error_log /dev/null;' >> $akaunting_nginx_site
310 309
         echo '' >> $akaunting_nginx_site
311
-        echo '  # Root' >> $akaunting_nginx_site
312 310
         echo "  root /var/www/$AKAUNTING_DOMAIN_NAME/htdocs;" >> $akaunting_nginx_site
313 311
         echo '' >> $akaunting_nginx_site
314
-        echo '  # Index' >> $akaunting_nginx_site
315 312
         echo '  index index.php;' >> $akaunting_nginx_site
316 313
         echo '' >> $akaunting_nginx_site
317
-        echo '  # PHP' >> $akaunting_nginx_site
318 314
         echo '  location ~ \.php {' >> $akaunting_nginx_site
319 315
         echo '    include snippets/fastcgi-php.conf;' >> $akaunting_nginx_site
320 316
         echo '    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;' >> $akaunting_nginx_site
321 317
         echo '    fastcgi_read_timeout 30;' >> $akaunting_nginx_site
322 318
         echo '  }' >> $akaunting_nginx_site
323 319
         echo '' >> $akaunting_nginx_site
324
-        echo '  # Location' >> $akaunting_nginx_site
325 320
         echo '  location / {' >> $akaunting_nginx_site
326 321
         function_check nginx_limits
327 322
         nginx_limits $AKAUNTING_DOMAIN_NAME '15m'
@@ -355,17 +350,14 @@ function install_akaunting {
355 350
     echo '' >> $akaunting_nginx_site
356 351
     echo "  root /var/www/$AKAUNTING_DOMAIN_NAME/htdocs;" >> $akaunting_nginx_site
357 352
     echo '' >> $akaunting_nginx_site
358
-    echo '  # Index' >> $akaunting_nginx_site
359 353
     echo '  index index.php;' >> $akaunting_nginx_site
360 354
     echo '' >> $akaunting_nginx_site
361
-    echo '  # PHP' >> $akaunting_nginx_site
362 355
     echo '  location ~ \.php {' >> $akaunting_nginx_site
363 356
     echo '    include snippets/fastcgi-php.conf;' >> $akaunting_nginx_site
364 357
     echo '    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;' >> $akaunting_nginx_site
365 358
     echo '    fastcgi_read_timeout 30;' >> $akaunting_nginx_site
366 359
     echo '  }' >> $akaunting_nginx_site
367 360
     echo '' >> $akaunting_nginx_site
368
-    echo '  # Location' >> $akaunting_nginx_site
369 361
     echo '  location / {' >> $akaunting_nginx_site
370 362
     function_check nginx_limits
371 363
     nginx_limits $AKAUNTING_DOMAIN_NAME '15m'
@@ -379,7 +371,6 @@ function install_akaunting {
379 371
     echo '  location ~ /\.(ht|git) {' >> $akaunting_nginx_site
380 372
     echo '    deny all;' >> $akaunting_nginx_site
381 373
     echo '  }' >> $akaunting_nginx_site
382
-    echo '' >> $akaunting_nginx_site
383 374
     echo '}' >> $akaunting_nginx_site
384 375
 
385 376
     function_check configure_php