From c87adbe2536fb04cbf77ac38302880ed99a8239e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Feb 2010 11:22:38 +0000 Subject: [PATCH] Enhance debian installer --- build/deb/postrm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/build/deb/postrm b/build/deb/postrm index f84b35e6c6c..df1bbd08ed6 100644 --- a/build/deb/postrm +++ b/build/deb/postrm @@ -77,8 +77,30 @@ case "$1" in #dbadmpass="$RET" dbtype="mysql" - . /usr/share/wwwconfig-common/${dbtype}-dropuser.sh + # To delete a mysql user (disabled) + # Needs: $dbuser - the user name to create (or replace). + # $dballow - what hosts to allow (defaults to %). + # $dbname - the database that user should have access to. + # $dbpass - the password to use. + # $dbserver - the server to connect to. + # $dbadmin - the administrator name. + # $dbadmpass - the administrator password. + # which + # mysql + # /usr/share/wwwconfig-coomon/mysql.get + #. /usr/share/wwwconfig-common/${dbtype}-dropuser.sh + + # To delete database + # Needs: $dbname - the database that user should have access to. + # $dbserver - the server to connect to. + # $dbadmin - the administrator name. + # $dbadmpass - the administrator password. + # which + # mysql + # /usr/share/wwwconfig-common/mysql.get + echo "postrm Delete database $dbname on server $dbserver using account $dbadmin" . /usr/share/wwwconfig-common/${dbtype}-dropdb.sh + else echo "postrm Delete of dolibarr database not wanted" fi