Browse Source

[Update] Backup old header check, don't delete

André 6 years ago
parent
commit
03896ccbee
1 changed files with 2 additions and 1 deletions
  1. 2 1
      update.sh

+ 2 - 1
update.sh

@@ -254,7 +254,8 @@ sleep 2
 docker-compose down
 docker-compose down
 
 
 # Fix header check
 # Fix header check
-rm -f data/conf/postfix/mailcow_anonymize_headers.pcre
+[[ -f data/conf/postfix/mailcow_anonymize_headers.pcre ]] && \
+  mv data/conf/postfix/mailcow_anonymize_headers.pcre data/conf/postfix/mailcow_anonymize_headers.pcre_
 # Silently fixing remote url from andryyy to mailcow
 # Silently fixing remote url from andryyy to mailcow
 git remote set-url origin https://github.com/mailcow/mailcow-dockerized
 git remote set-url origin https://github.com/mailcow/mailcow-dockerized
 echo -e "\e[32mCommitting current status...\e[0m"
 echo -e "\e[32mCommitting current status...\e[0m"