From 82fd6a81323a740594c23e4b723f4a31f176eafe Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 30 Jan 2019 01:11:19 -0600 Subject: [PATCH] Update install-mysqlbu.sh --- install-mysqlbu.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install-mysqlbu.sh b/install-mysqlbu.sh index faaab4a..3afde21 100755 --- a/install-mysqlbu.sh +++ b/install-mysqlbu.sh @@ -5,9 +5,6 @@ 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 "${idsCL[LightGreen]}MySQL-BU Installation Script${idsCL[Default]}" @@ -16,7 +13,7 @@ echo -e "${idsCL[LightGreen]}MySQL-BU Installation Script${idsCL[Default]}" #do_with_root dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb #do_with_root percona-release enable-only tools release #do_with_root $APTFUNC update -do_with_root $curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash +do_with_root curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash do_with_root $APTFUNC -y install wget curl git mariadb-backup do_with_root set -eu