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:
parent
e60644823d
commit
142ca202ac
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue