blob: 7aa74107c4305e9196e3efdd10e573967055d442 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
pre_install() {
if [ ! `grep odoo /etc/group` ]; then
groupadd odoo &>/dev/null;
fi
id odoo &>/dev/null || useradd -r -m -g odoo -d /var/lib/odoo odoo
}
post_install() {
systemctl --system daemon-reload
}
post_upgrade() {
systemctl --system daemon-reload
}
post_remove() {
userdel odoo &> /dev/null
groupdel odoo &> /dev/null
systemctl --system daemon-reload
}
|