From befa5c93747ac9377d8efc8ee29d255677193f8f Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 9 Oct 2020 11:44:20 +0200 Subject: [PATCH] added output var --- conf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.sh b/conf.sh index 56e3fde..d2bc5b1 100644 --- a/conf.sh +++ b/conf.sh @@ -2,8 +2,8 @@ mrepo=https://git.ictmaatwerk.com/VPS-scripts/MySQL mbranch=master -if [ -z ${password+x} ]; then echo 'Error $password is not set'; fi -if [ -z ${PHPMyadmin+x} ]; then echo 'Error $PHPMyadmin is not set, Setting default OFF' && PHPMyadmin=0;fi #check if Var is set +if [ -z ${password+x} ]; then echo 'Error $password is not set' > $OUTPUT 2>&1 ; fi +if [ -z ${PHPMyadmin+x} ]; then echo 'Error $PHPMyadmin is not set, Setting default OFF' > $OUTPUT 2>&1 && PHPMyadmin=0;fi #check if Var is set rm -rf /etc/mysql/ /etc/my.cnf.d/ /etc/my.cnf mkdir /etc/mysql/