summarylogtreecommitdiffstats
path: root/odoo.install
diff options
context:
space:
mode:
Diffstat (limited to 'odoo.install')
-rw-r--r--odoo.install22
1 files changed, 10 insertions, 12 deletions
diff --git a/odoo.install b/odoo.install
index 32f959743ac4..1a3ae82e28ba 100644
--- a/odoo.install
+++ b/odoo.install
@@ -1,14 +1,12 @@
-post_upgrade() {
- # hooks are ran *after* this function, so we have to call
- # systemd-sysusers manually to make sure the odoo user exists
- systemd-sysusers
- mkdir -p /var/lib/odoo
- chown -R odoo:odoo /var/lib/odoo
+post_upgrade(){
+ # show message 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
- # show message only if major version differs
- if [ "${1%.*}" -gt "${2%.*}" ]; then
- echo "You should manually upgrade the Odoo database by running 'odoo -u all' as the odoo user."
- echo "When using sudo you can use 'sudo -u odoo odoo -u all'."
- echo "Then visit the the web interface while the upgrade command is running."
- fi
+ odoo -u all
+
+"
+ fi
}