Update file run_onchange_after_05-postfix.sh.tmpl
This commit is contained in:
parent
6b63e0a8de
commit
2095475d42
1 changed files with 6 additions and 0 deletions
|
@ -63,7 +63,13 @@ if command -v postfix > /dev/null; then
|
||||||
if [ -d /Applications ] && [ -d /System ]; then
|
if [ -d /Applications ] && [ -d /System ]; then
|
||||||
### macOS
|
### macOS
|
||||||
# Source: https://budiirawan.com/install-mail-server-mac-osx/
|
# 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
|
sudo postfix start
|
||||||
|
logg info 'Reloading postfix'
|
||||||
sudo postfix reload
|
sudo postfix reload
|
||||||
else
|
else
|
||||||
### Enable / restart postfix on Linux
|
### Enable / restart postfix on Linux
|
||||||
|
|
Loading…
Reference in a new issue