blob: 4aea548e8442c8956ff9f71ab5adf0b34e4b2c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
getent group exim >/dev/null 2>&1 || groupadd -g 79 exim
if getent passwd exim > /dev/null 2>&1; then
usr/sbin/usermod -d /var/spool/exim -c 'Exim MTA' -s /sbin/nologin exim > /dev/null 2>&1
else
usr/sbin/useradd -c 'Exim MTA' -u 79 -g exim -d /var/spool/exim -s /sbin/nologin exim
fi
passwd -l exim > /dev/null
chown root.exim /var/spool/exim /var/log/exim
chown exim.exim /var/spool/exim/db
chmod u+s /usr/bin/exim
}
post_upgrade() {
post_install
}
pre_remove() {
getent passwd exim >/dev/null 2>&1 && userdel exim
}
|