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

[enh] Uncomment database setup

This commit is contained in:
Zamentur aka ljf 2015-11-26 19:45:23 +01:00
parent e92e23a1ab
commit bd9744e801

View file

@ -48,8 +48,7 @@ else
# Initialize installation
sudo apt-get -y -qq install postgresql
sudo su - postgres -c "echo \"CREATE USER odoo WITH PASSWORD '$admin_password';\" | psql" 2> /dev/null || true
sudo su - postgres -c "echo \"ALTER ROLE odoo WITH CREATEDB;\" | psql" 2> /dev/null || true
sudo su - postgres -c "echo \"CREATE USER odoo WITH PASSWORD '$admin_password' CREATEDB;\" | psql" 2> /dev/null || true
sudo apt-get -y -qq install odoo
@ -65,7 +64,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
# Install oerplib to manage databases
# sudo pip install oerplib
sudo pip install oerplib
# Add services
sudo yunohost service add postgresql
@ -84,11 +83,11 @@ function exit_properly
}
trap exit_properly ERR
# Setup database: not working
# sudo sed -i "s@ADMIN_PASSWORD@$admin_password@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_PASSWORD@$database_password@g" ../conf/install_database.py
# sudo python ../conf/install_database.py
sudo sed -i "s@ADMIN_PASSWORD@$admin_password@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_PASSWORD@$database_password@g" ../conf/install_database.py
sudo python ../conf/install_database.py
# Setup LDAP: TO BE DONE