From cc25c1f921718548e5059721afb21834d5d131fd Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Mon, 11 Sep 2017 22:04:37 +0200 Subject: [PATCH] Remove MySQL netdata user when uninstalling --- scripts/remove | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/remove b/scripts/remove index d77fd22..000a7da 100644 --- a/scripts/remove +++ b/scripts/remove @@ -49,6 +49,9 @@ ynh_replace_string "rm -I" "rm -f" ${UNINSTALL_SCRIPT} # Execute the uninstall script ./${UNINSTALL_SCRIPT} --force +# Remove MySQL netdata user + ynh_mysql_execute_as_root "drop user 'netdata'@'localhost'; flush privileges;" + #================================================= # REMOVE NGINX CONFIGURATION #=================================================