We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91eac7c commit 6926bf3Copy full SHA for 6926bf3
1 file changed
bin/v-add-fastcgi-cache
@@ -80,7 +80,7 @@ chmod 640 $fastcgi
80
str="fastcgi_cache_path /var/cache/nginx/micro/$domain levels=1:2"
81
str="$str keys_zone=$domain:10m max_size=512m inactive=30m;"
82
conf='/etc/nginx/conf.d/fastcgi_cache_pool.conf'
83
-if [ -e "$conf" ]; then
+if [ -f "$conf" ]; then
84
if [ -z "$(grep "=${domain}:" $conf)" ]; then
85
echo "$str" >> $conf
86
fi
0 commit comments