1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00
This commit is contained in:
scith 2015-09-14 18:38:24 +02:00
parent f8f8b883c8
commit 24657490de
3 changed files with 12 additions and 14 deletions

View file

@ -12,14 +12,17 @@ https://example.com/odoo/ will NOT work
What does not work
------------------
Backup and restore
- Backup and restore
- Automatic database creation
- Automatic LDAP configuration
Configuration
-------------
Create a database name "subdomain-domain-ltd" (for example "erp-test-com" if you access via erp.test.com)
**Database**
- Create a database named "**subdomain-domain-ltd**" (for example "erp-test-com" if you access via erp.test.com)
Setup LDAP
- Create a user named "template" with email "template". This user will give its permissions by default to YunoHost users so you can also give it appropriate rights.
**Setup LDAP**
- Create a user named "template" with email "template". This user will give its permissions by default to YunoHost users so you can also give it appropriate permissions.
- In "Edit Company Data" (on the logo), go to "Configuration" and add a LDAP setting
- LDAP Address: localhost
- LDAP Port: 389

View file

@ -28,13 +28,6 @@
},
"choices": ["8.0", "9.0"],
"default": "8.0"
},
{
"name": "admin_password",
"ask": {
"en": "Choose a strong master admin password",
"fr": "Choisissez un mot de passe maître fort pour l'administration"
}
}
]
}

View file

@ -36,9 +36,11 @@ sudo yunohost app setting $app domain -v $domain
sudo apt-get -y install wkhtmltopdf
sudo apt-get -y install odoo
# Copy conf file
sudo sed -i "s@ADMIN_PASSWORD@$admin_password@g" ../conf/odoo-server.conf
sudo cp ../conf/odoo-server.conf /etc/odoo-server.conf
# Set admin password
sudo sed -i "s@admin_passwd = admin@admin_passwd = $admin_password@g" /etc/odoo/openerp-server.conf
# Setup LDAP
sudo sed -i "s@'auto_install': False@'auto_install': True@g" /usr/lib/python2.7/dist-packages/openerp/addons/auth_ldap/__openerp__.py
# Add services
sudo yunohost service add postgresql