summarylogtreecommitdiffstats
path: root/odoo.install
blob: 32f959743ac4fb9a04e1913ad14ffc0283b55800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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

  # 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
}