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
|
What does not work
|
||||||
------------------
|
------------------
|
||||||
Backup and restore
|
- Backup and restore
|
||||||
|
- Automatic database creation
|
||||||
|
- Automatic LDAP configuration
|
||||||
|
|
||||||
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
|
**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.
|
- 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
|
- In "Edit Company Data" (on the logo), go to "Configuration" and add a LDAP setting
|
||||||
- LDAP Address: localhost
|
- LDAP Address: localhost
|
||||||
- LDAP Port: 389
|
- LDAP Port: 389
|
||||||
|
|
|
@ -28,13 +28,6 @@
|
||||||
},
|
},
|
||||||
"choices": ["8.0", "9.0"],
|
"choices": ["8.0", "9.0"],
|
||||||
"default": "8.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 wkhtmltopdf
|
||||||
sudo apt-get -y install odoo
|
sudo apt-get -y install odoo
|
||||||
|
|
||||||
# Copy conf file
|
# Set admin password
|
||||||
sudo sed -i "s@ADMIN_PASSWORD@$admin_password@g" ../conf/odoo-server.conf
|
sudo sed -i "s@admin_passwd = admin@admin_passwd = $admin_password@g" /etc/odoo/openerp-server.conf
|
||||||
sudo cp ../conf/odoo-server.conf /etc/odoo-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
|
# Add services
|
||||||
sudo yunohost service add postgresql
|
sudo yunohost service add postgresql
|
||||||
|
|
Loading…
Reference in a new issue