initial import
This commit is contained in:
18
mailgraph/mailgraph.install
Normal file
18
mailgraph/mailgraph.install
Normal file
@@ -0,0 +1,18 @@
|
||||
post_install() {
|
||||
if ! getent passwd mgraph &>/dev/null; then
|
||||
useradd -r -d /var/lib/mailgraph -g adm -s /bin/false mgraph
|
||||
fi
|
||||
|
||||
chown -R mgraph:adm /var/lib/mailgraph
|
||||
chown -R mgraph:adm /var/log/mailgraph
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
if getent passwd mgraph &>/dev/null; then
|
||||
userdel mgraph >/dev/null
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user