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

[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 rm -Rf $DESTDIR
ynh_psql_create_db $APPNAME $APPNAME "$dbpass"
# Set admin password
# TODO Support @ in password

View file

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