mirror of
https://github.com/YunoHost-Apps/libreerp_ynh.git
synced 2024-09-03 19:36:13 +02:00
fix
This commit is contained in:
parent
f8f8b883c8
commit
24657490de
3 changed files with 12 additions and 14 deletions
11
README.md
11
README.md
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue