added output var

This commit is contained in:
Bram Prieshof
2020-10-09 11:44:20 +02:00
parent c57ff11e9b
commit befa5c9374

View File

@@ -2,8 +2,8 @@
mrepo=https://git.ictmaatwerk.com/VPS-scripts/MySQL mrepo=https://git.ictmaatwerk.com/VPS-scripts/MySQL
mbranch=master mbranch=master
if [ -z ${password+x} ]; then echo 'Error $password is not set'; fi 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' && PHPMyadmin=0;fi #check if Var is set 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 rm -rf /etc/mysql/ /etc/my.cnf.d/ /etc/my.cnf
mkdir /etc/mysql/ mkdir /etc/mysql/