summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-07-11 00:29:31 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-11 00:29:31 +0000
commitb7aa35672939e624e495445d98b5165e01728174 (patch)
tree93989ef4b1e50078dff019038fad5743a1aa1164
parentf44a40979b47674ea361e8c50e9ff99ca67dee30 (diff)
Postfix Now adds user when installed
-rw-r--r--packages/postfix/postfix_2.0.20.bb9
1 files changed, 9 insertions, 0 deletions
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
+}
+