From b7aa35672939e624e495445d98b5165e01728174 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Mon, 11 Jul 2005 00:29:31 +0000 Subject: Postfix Now adds user when installed --- packages/postfix/postfix_2.0.20.bb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages/postfix') diff --git a/packages/postfix/postfix_2.0.20.bb b/packages/postfix/postfix_2.0.20.bb index 483e95f19c..c826dc5469 100644 --- a/packages/postfix/postfix_2.0.20.bb +++ b/packages/postfix/postfix_2.0.20.bb @@ -21,3 +21,12 @@ do_compile () { do_install () { sh ./postfix-install 'install_root=${D}' -non-interactive } + +pkg_postinst () { + grep postfix /etc/passwd || adduser --disabled-password --home=/var/spool/mail --ingroup nogroup postfix +} + +pkg_postrm () { + grep postfix /etc/passwd && deluser postfix +} + -- cgit v1.2.3