From: Frank Brehm Date: Wed, 11 Apr 2018 10:52:29 +0000 (+0200) Subject: Fixing bin/postinst X-Git-Tag: 0.1.1~53 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=a1cf68d400295bc5f49f65d786dec85e0225bfcc;p=pixelpark%2Fcreate-vmware-tpl.git Fixing bin/postinst --- 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