diff --git a/preconf.sh b/preconf.sh index 68f2369..c84d679 100644 --- a/preconf.sh +++ b/preconf.sh @@ -1,6 +1,6 @@ mrepo=https://git.bprieshof.nl/Work/Test-MySQL mbranch=master -CurDebFrond="$DEBIAN_FRONTEND" +if [ -z ${DEBIAN_FRONTEND+x} ]; then echo 'env not set' ; else CurDebFrond="$DEBIAN_FRONTEND"; fi #checking and saving DEBIAN_FRONTEND export DEBIAN_FRONTEND=noninteractive if [ -z ${password+x} ]; then echo 'Error $password is not set'; fi @@ -22,6 +22,6 @@ wget -q -t7 https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb -O /tmp/ dpkg -i /tmp/mysql-apt-conf.deb > $OUTPUT 2>&1 -export DEBIAN_FRONTEND=$CurDebFrond +if [ -z ${CurDebFrond+x} ]; then unset DEBIAN_FRONTEND ; else export DEBIAN_FRONTEND=$CurDebFrond; fi #Restore DEBIAN_FRONTEND unset mrepo unset mbranch \ No newline at end of file