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

Autoinstall database

This commit is contained in:
scith 2015-09-16 12:22:28 +02:00
parent 07186f71ff
commit 892eb003f0

View file

@ -62,7 +62,7 @@ else
sudo sed -i "s@'auto_install': False@'auto_install': True@g" /usr/lib/python2.7/dist-packages/openerp/addons/auth_ldap/__openerp__.py sudo sed -i "s@'auto_install': False@'auto_install': True@g" /usr/lib/python2.7/dist-packages/openerp/addons/auth_ldap/__openerp__.py
# Install oerplib to manage databases # Install oerplib to manage databases
pip install oerplib sudo pip install oerplib
# Add services # Add services
sudo yunohost service add postgresql sudo yunohost service add postgresql
@ -76,7 +76,7 @@ fi
sudo sed -i "s@DOMAIN_DATABASE@${domain//./-}@g" ../conf/install_database.py sudo sed -i "s@DOMAIN_DATABASE@${domain//./-}@g" ../conf/install_database.py
sudo sed -i "s@DATABASE_LANG@$database_lang@g" ../conf/install_database.py sudo sed -i "s@DATABASE_LANG@$database_lang@g" ../conf/install_database.py
sudo sed -i "s@DATABASE_PASSWORD@$database_password@g" ../conf/install_database.py sudo sed -i "s@DATABASE_PASSWORD@$database_password@g" ../conf/install_database.py
python ../conf/install_database.py sudo python ../conf/install_database.py
# Setup LDAP: TO BE DONE # Setup LDAP: TO BE DONE