aboutsummaryrefslogtreecommitdiffstats
path: root/config/postfix
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-04-27 10:07:22 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-04-27 10:07:22 -0300
commit7c10d4029c809d662156d5116be882ba2f8d6af9 (patch)
tree684db97e8fb07e7bde81a2bbe1b6d49a396c4ae7 /config/postfix
parentf8dc79aa8b222da9540596d16cee8bc6643afaff (diff)
downloadpfsense-packages-7c10d4029c809d662156d5116be882ba2f8d6af9.tar.gz
pfsense-packages-7c10d4029c809d662156d5116be882ba2f8d6af9.tar.bz2
pfsense-packages-7c10d4029c809d662156d5116be882ba2f8d6af9.zip
Symlink /etc/aliases -> /etc/mail/aliases and silence errors. Bump package version
Diffstat (limited to 'config/postfix')
-rwxr-xr-xconfig/postfix/postfix.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc
index e2b5c7df..fd0832ba 100755
--- a/config/postfix/postfix.inc
+++ b/config/postfix/postfix.inc
@@ -766,6 +766,8 @@ MASTEREOF2;
}
if (!file_exists("/etc/mail/aliases"))
touch("/etc/mail/aliases");
+ if (!file_exists("/etc/aliases"))
+ @symlink("/etc/mail/aliases", "/etc/aliases");
exec("/usr/local/bin/newaliases");
postfix_start();
@@ -846,6 +848,7 @@ function postfix_php_deinstall_command() {
sync_package_postfix();
conf_mount_rw();
unlink_if_exists("/usr/local/etc/rc.d/postfix.sh");
+ unlink_if_exists("/etc/aliases");
conf_mount_ro();
}