From 7bb3ab96a85ca2a51d03f333eabda493466971d9 Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 14 Dec 2016 11:36:55 +0100 Subject: [PATCH] [fix] Remove unused db --- scripts/install | 7 +------ scripts/remove | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 2eff5b6..d2b7061 100644 --- a/scripts/install +++ b/scripts/install @@ -41,8 +41,6 @@ else echo "Installing odoo" - dbname=$APPNAME - dbuser=$APPNAME # Generate random password # Fix a bug on ynh_string_random https://github.com/YunoHost/yunohost/pull/205/commits/0d6cf499a0b858e7009245fd11a9210188047c13 dbpass=$(ynh_string_random | sed "s/\[/e/g" | sed "s/\]/e/g") @@ -65,10 +63,7 @@ else sudo apt-get update # Initialize installation - ynh_package_install postgresql - # This db may be unused - ynh_psql_create_db "$dbname" "$dbuser" "$dbpass" - ynh_package_install odoo + ynh_package_install postgresql odoo # Install wkhtmltopdf to print PDF reports ynh_package_install xfonts-75dpi xfonts-base wkhtmltopdf diff --git a/scripts/remove b/scripts/remove index 4c6fc59..ce0550d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -25,8 +25,6 @@ if [ "$instance" = "master" ]; then ynh_package_remove wkhtmltopdf sudo rm -f /etc/odoo/openerp-server.conf sudo yunohost service remove odoo - ynh_psql_drop_db $APPNAME - ynh_psql_drop_user $APPNAME fi # Remove database