Skip to content

Commit 6926bf3

Browse files
author
Alexandros Ioannides
authored
Update v-add-fastcgi-cache
1 parent 91eac7c commit 6926bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-fastcgi-cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ chmod 640 $fastcgi
8080
str="fastcgi_cache_path /var/cache/nginx/micro/$domain levels=1:2"
8181
str="$str keys_zone=$domain:10m max_size=512m inactive=30m;"
8282
conf='/etc/nginx/conf.d/fastcgi_cache_pool.conf'
83-
if [ -e "$conf" ]; then
83+
if [ -f "$conf" ]; then
8484
if [ -z "$(grep "=${domain}:" $conf)" ]; then
8585
echo "$str" >> $conf
8686
fi

0 commit comments

Comments
 (0)