Explorar el Código

Update v-add-fastcgi-cache

Alexandros Ioannides hace 5 años
padre
commit
6926bf334f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/v-add-fastcgi-cache

+ 1 - 1
bin/v-add-fastcgi-cache

@@ -80,7 +80,7 @@ chmod 640 $fastcgi
 str="fastcgi_cache_path /var/cache/nginx/micro/$domain levels=1:2" 
 str="fastcgi_cache_path /var/cache/nginx/micro/$domain levels=1:2" 
 str="$str keys_zone=$domain:10m max_size=512m inactive=30m;" 
 str="$str keys_zone=$domain:10m max_size=512m inactive=30m;" 
 conf='/etc/nginx/conf.d/fastcgi_cache_pool.conf'
 conf='/etc/nginx/conf.d/fastcgi_cache_pool.conf'
-if [ -e "$conf" ]; then
+if [ -f "$conf" ]; then
     if [ -z "$(grep "=${domain}:" $conf)" ]; then
     if [ -z "$(grep "=${domain}:" $conf)" ]; then
         echo "$str" >> $conf
         echo "$str" >> $conf
     fi
     fi