diff options
Diffstat (limited to 'odoo.install')
-rw-r--r-- | odoo.install | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/odoo.install b/odoo.install index 0d29dfcc1de3..32f959743ac4 100644 --- a/odoo.install +++ b/odoo.install @@ -4,4 +4,11 @@ post_upgrade() { systemd-sysusers mkdir -p /var/lib/odoo chown -R odoo:odoo /var/lib/odoo + + # 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 } |