From 2095475d4258d080ab4504979519a824b9c548b4 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 19 Apr 2023 13:34:06 +0000 Subject: [PATCH] Update file run_onchange_after_05-postfix.sh.tmpl --- .../universal/run_onchange_after_05-postfix.sh.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl index 2dd242a3..fb3b1b35 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl @@ -63,7 +63,13 @@ if command -v postfix > /dev/null; then if [ -d /Applications ] && [ -d /System ]; then ### macOS # Source: https://budiirawan.com/install-mail-server-mac-osx/ + if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/postfix/com.apple.postfix.master.plist" ]; then + logg info 'Copying com.apple.postfix.master.plist' + sudo cp -f "${XDG_CONFIG_HOME:-$HOME/.config}/postfix/com.apple.postfix.master.plist" /System/Library/LaunchDaemons/com.apple.postfix.master.plist + fi + logg info 'Starting postfix' sudo postfix start + logg info 'Reloading postfix' sudo postfix reload else ### Enable / restart postfix on Linux