summarylogtreecommitdiffstats
path: root/portal.install
diff options
context:
space:
mode:
Diffstat (limited to 'portal.install')
-rw-r--r--portal.install4
1 files changed, 4 insertions, 0 deletions
diff --git a/portal.install b/portal.install
index e9a0379fd6de..6ba03c26a5fd 100644
--- a/portal.install
+++ b/portal.install
@@ -1,6 +1,8 @@
post_install() {
+ getent passwd portal &>/dev/null || useradd postfix >/dev/null
portal-postconf -d $(hostname)
portal-doveconf
+ true
}
post_upgrade() {
@@ -8,5 +10,7 @@ post_upgrade() {
}
post_remove() {
+ getent passwd portal &>/dev/null && userdel portal >/dev/null
+ getent group portal &>/dev/null && groupdel portal >/dev/null
post_install
}