From a1cf68d400295bc5f49f65d786dec85e0225bfcc Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 11 Apr 2018 12:52:29 +0200 Subject: [PATCH] Fixing bin/postinst --- bin/postinst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/postinst b/bin/postinst index ff03b04..f1df010 100644 --- a/bin/postinst +++ b/bin/postinst @@ -853,6 +853,10 @@ install_postfix() { "/etc/postfix/main.cf.$( date -r /etc/postfix/main.cf +'%Y-%m-%d_%H:%M:%S' ).bak" cp -pv "/etc/postfix/master.cf" \ "/etc/postfix/master.cf.$( date -r /etc/postfix/master.cf +'%Y-%m-%d_%H:%M:%S' ).bak" + if [[ -f "/etc/postfix/virtual" ]] ; then + cp -pv "/etc/postfix/virtual" \ + "/etc/postfix/virtual.$( date -r /etc/postfix/virtual +'%Y-%m-%d_%H:%M:%S' ).bak" + fi local option= for option in "${main_options_remove[@]}" ; do -- 2.39.5