Fi: Uninstall not complete
This commit is contained in:
parent
6600993796
commit
fa1d8a3f34
@ -180,11 +180,17 @@ case "$1" in
|
|||||||
|
|
||||||
# Now run the drop user
|
# Now run the drop user
|
||||||
if eval $mysqlcmd -f -e "\"DROP USER '$dbuser'@'localhost';\"" ; then
|
if eval $mysqlcmd -f -e "\"DROP USER '$dbuser'@'localhost';\"" ; then
|
||||||
echo postrm Database login $dbuser removed
|
echo postrm Database login $dbuser@localhost removed
|
||||||
else
|
else
|
||||||
error="Unable to run $mysqlcmd -f -e \"DROP USER '$dbuser'@'localhost';\""
|
error="Unable to run $mysqlcmd -f -e \"DROP USER '$dbuser'@'localhost';\""
|
||||||
echo postrm $error
|
echo postrm $error
|
||||||
fi
|
fi
|
||||||
|
if eval $mysqlcmd -f -e "\"DROP USER '$dbuser'@'%';\"" ; then
|
||||||
|
echo postrm Database login $dbuser@% removed
|
||||||
|
else
|
||||||
|
error="Unable to run $mysqlcmd -f -e \"DROP USER '$dbuser'@'%';\""
|
||||||
|
echo postrm $error
|
||||||
|
fi
|
||||||
|
|
||||||
# Now run the drop commands
|
# Now run the drop commands
|
||||||
if eval $mysqlcmd -f -e "\"show databases;\"" | grep -e "^$dbname" > /dev/null 2>&1 ; then
|
if eval $mysqlcmd -f -e "\"show databases;\"" | grep -e "^$dbname" > /dev/null 2>&1 ; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user