blob: 4ed8ccd1af5f65e753b57769aff7dbd1d91ba9ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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
echo "This package requires a functional PostgreSQL server. "
echo "To use with a locally installed PostgreSQL:
echo "-- Make sure PostgreSQL is correctly installed (see wiki), start it,"
echo "-- create user with database creation rights for odoo in PostgreSQL"
echo "-- e.g: # su - postgres -c \"createuser -dRSP <myodoouser>\""
echo "-- then edit '/etc/odoo/odoo-server.conf' accordingly."
}
post_upgrade() {
post_install
systemctl --system daemon-reload
}
post_remove() {
userdel odoo &> /dev/null
groupdel odoo &> /dev/null
systemctl --system daemon-reload
}
# vim:set ts=2 sw=2 et:
|