Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-05 20:42:54 -06:00
parent 8710d83c0e
commit dc84b2da7f

View File

@@ -13,6 +13,7 @@ source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scr
if [ $(id -u) != "0" ]; then if [ $(id -u) != "0" ]; then
echo "Sorry, I need root privileges!" echo "Sorry, I need root privileges!"
exit 1
fi fi
MYSQLDATA="`grep --perl-regexp --only-match '(?<=datadir=).+' "$MYSQLCFG"`" MYSQLDATA="`grep --perl-regexp --only-match '(?<=datadir=).+' "$MYSQLCFG"`"