1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00

[fix] Configure ldap

This commit is contained in:
ljf 2016-12-14 21:55:08 +01:00
parent 0666dd6cca
commit c67112a771

View file

@ -118,8 +118,12 @@ sudo service postgresql reload
# Setup database: not working
database=${domain//./-}
# Load translation
sudo /usr/bin/openerp-server -c /etc/odoo/openerp-server.conf --stop-after-init -d $database --load-language $lang
sudo /usr/bin/openerp-server -c /etc/odoo/openerp-server.conf shell <<< \
# Configure language, timezone and ldap
sudo /usr/bin/openerp-server shell -c /etc/odoo/openerp-server.conf --stop-after-init -d $database <<< \
"
self.change_password('admin','$admin_password')
self.write({'tz':'$tz','lang':'$lang'})