blob: dd57a7f1e33b592a68b126655debf84c176f3fe3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
post_install(){
# show message after first install
echo "If first install, you need to set your database connection details in /etc/odoo/odoo.conf.
You then need to initialize the database:
sudo -u odoo /var/lib/odoo/.venv/bin/odoo --config /etc/odoo/odoo.conf -i base"
}
post_upgrade(){
# show message after upgrade only if major version differs
if [ "${1%.*}" -gt "${2%.*}" ]; then
echo "A new major version of Odoo has been released, you should upgrade
the odoo database by running the following as the odoo user:
sudo -u odoo /var/lib/odoo/.venv/bin/odoo --config /etc/odoo/odoo.conf -u all"
fi
}
|