]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Fixing bin/postinst
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 11 Apr 2018 10:52:29 +0000 (12:52 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 11 Apr 2018 10:52:29 +0000 (12:52 +0200)
bin/postinst

index ff03b0453c752065ebb83ce59523aa7fb648682d..f1df0109f2470b7216045223cb605c8cb310c1d7 100644 (file)
@@ -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