From 03896ccbee4e5c1f054502786145abd6a8fc5357 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9?= <andre.peters@servercow.de>
Date: Tue, 16 Oct 2018 09:33:23 +0200
Subject: [PATCH] [Update] Backup old header check, don't delete

---
 update.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/update.sh b/update.sh
index 0e7aad4d..106e53b0 100755
--- a/update.sh
+++ b/update.sh
@@ -254,7 +254,8 @@ sleep 2
 docker-compose down
 
 # 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
 git remote set-url origin https://github.com/mailcow/mailcow-dockerized
 echo -e "\e[32mCommitting current status...\e[0m"