summarylogtreecommitdiffstats
path: root/odoo.install
blob: dbf0b96b2e968d64c87e1f279492ad94e3f819b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install(){
	# show message after first install
	echo "On first install you'll need to set your database connection details in /etc/odoo18/odoo.conf and initialize the database:

  cd `mktemp -d`; sudo -u odoo18 /var/lib/odoo18/venv/bin/odoo --config /etc/odoo18/odoo.conf -i base
"
	post_upgrade
}

post_upgrade(){
	echo "If you are upgrading from a previous version of Odoo you will need to update your database. First make a backup, then run the following as the odoo user:

  cd \`mktemp -d\`; sudo -u odoo18 /var/lib/odoo18/venv/bin/odoo --config /etc/odoo18/odoo.conf -u all

	For major version upgrades, see the Odoo website for instructions: https://www.odoo.com/documentation/18.0/administration/upgrade.html
"
}