[fix] Odoo db not created

This commit is contained in:
ljf 2016-12-14 12:47:31 +01:00
parent e60644823d
commit 142ca202ac
2 changed files with 4 additions and 2 deletions

View file

@ -75,6 +75,7 @@ else
sudo cp -R "$DESTDIR." /usr/ sudo cp -R "$DESTDIR." /usr/
sudo rm -Rf $DESTDIR sudo rm -Rf $DESTDIR
ynh_psql_create_db $APPNAME $APPNAME "$dbpass"
# Set admin password # Set admin password
# TODO Support @ in password # TODO Support @ in password

View file

@ -21,9 +21,10 @@ sudo yunohost service stop odoo | true
if [ "$instance" = "master" ]; then if [ "$instance" = "master" ]; then
sudo rm -f /etc/apt/sources.list.d/odoo.list sudo rm -f /etc/apt/sources.list.d/odoo.list
sudo apt-get update sudo apt-get update
ynh_package_remove odoo
sudo dpkg -P odoo
sudo yunohost service remove odoo | true sudo yunohost service remove odoo | true
ynh_package_remove odoo | true
sudo dpkg -P odoo | true
ynh_psql_drop_db $APPNAME | true
fi fi
# Remove database # Remove database