summarylogtreecommitdiffstats
path: root/odoo.install
diff options
context:
space:
mode:
authorSebastiaan Lokhorst2018-06-10 11:46:39 +0200
committerSebastiaan Lokhorst2018-06-10 11:46:39 +0200
commit991cce490de11d72ded2ccae4b987adea3d06999 (patch)
tree209a0dee21ced7eb969ec36b779bd4a97df2a1f5 /odoo.install
parent136c01a945f1349633bc02f4b9a4773a487fa243 (diff)
downloadaur-991cce490de11d72ded2ccae4b987adea3d06999.tar.gz
Improve install file
Diffstat (limited to 'odoo.install')
-rw-r--r--odoo.install4
1 files changed, 3 insertions, 1 deletions
diff --git a/odoo.install b/odoo.install
index b1d7c241844..ccd6c9ad5de 100644
--- a/odoo.install
+++ b/odoo.install
@@ -1,5 +1,7 @@
post_upgrade() {
- # TODO: handle this nicer with systemd-sysusers
+ # the systemd-sysusers hook is run *after* this function,
+ # so the odoo user might not exist yet
+ systemd-sysusers /usr/lib/sysusers.d/odoo.conf
mkdir -p /var/lib/odoo
chown -R odoo:odoo /var/lib/odoo
}