From 4c3a2d972212547ee303545d9cda56226aab53f2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 27 Jan 2019 15:21:02 -0600 Subject: [PATCH] Create uninstall-mysqlbu.sh --- uninstall-mysqlbu.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 uninstall-mysqlbu.sh diff --git a/uninstall-mysqlbu.sh b/uninstall-mysqlbu.sh new file mode 100755 index 0000000..c7ebd2e --- /dev/null +++ b/uninstall-mysqlbu.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# Wrapper script for install, for easier execution via URL. + +source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)" +source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)" + + +if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}" +else APTFUNC="${ATYPE}" +fi +echo "" +echo -e "${CS[color,LightGreen]}MySQL-BU Removal Script${CS[color,Default]}" + + +do_with_root set -eu +rm -f /usr/local/bin/mysqlbu +rm -Rf /opt/mysqlbu + +echo "" +echo -e "${CS[color,LightRed]}MySQL-BU has been Removed${CS[color,Default]}" +echo "" + +exit 0 \ No newline at end of file