Create uninstall-mysqlbu.sh

This commit is contained in:
2019-01-27 15:21:02 -06:00
parent 23dffb36df
commit 4c3a2d9722

23
uninstall-mysqlbu.sh Executable file
View File

@@ -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