summarylogtreecommitdiffstats
path: root/odoo.install
diff options
context:
space:
mode:
authorSebastiaan Lokhorst2018-10-25 15:25:53 +0200
committerSebastiaan Lokhorst2018-10-25 15:25:53 +0200
commitcd1dd291a26c289aba8da0ef16551d72b144f57e (patch)
tree52fdd386e3b638d08b99b622dbfdec7afb830daf /odoo.install
parentf2a09a9bd14fd97ffa33cc0db3cd18df5aa4a9c2 (diff)
downloadaur-cd1dd291a26c289aba8da0ef16551d72b144f57e.tar.gz
Update to 12.0
Diffstat (limited to 'odoo.install')
-rw-r--r--odoo.install7
1 files changed, 7 insertions, 0 deletions
diff --git a/odoo.install b/odoo.install
index 0d29dfcc1de..32f959743ac 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
}