Browse Source

Optimised code

Jaap Marcus 4 years ago
parent
commit
ae03c67803
1 changed files with 1 additions and 6 deletions
  1. 1 6
      install/deb/templates/web/nginx/caching.sh

+ 1 - 6
install/deb/templates/web/nginx/caching.sh

@@ -13,10 +13,5 @@ if [ -e "$conf" ]; then
     if [ -n "$(grep "=${domain}:" $conf)" ]; then
         sed -i "/=${domain}:/d" $conf
     fi
-    if [ -z "$(grep "=${domain}:" $conf)" ]; then
-        echo "$str" >> $conf
-    fi
-else
-    echo "$str" >> $conf
 fi
-
+echo "$str" >> $conf