[fix] Configure ldap
This commit is contained in:
parent
0666dd6cca
commit
c67112a771
1 changed files with 5 additions and 1 deletions
|
@ -118,8 +118,12 @@ sudo service postgresql reload
|
||||||
|
|
||||||
# Setup database: not working
|
# Setup database: not working
|
||||||
database=${domain//./-}
|
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 --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.change_password('admin','$admin_password')
|
||||||
self.write({'tz':'$tz','lang':'$lang'})
|
self.write({'tz':'$tz','lang':'$lang'})
|
||||||
|
|
Loading…
Reference in a new issue