From 8b5613b428a60de5962800dd7f41b364cd511a14 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 20 Dec 2019 13:43:19 +0000 Subject: [PATCH] 'preconf.sh' updaten --- preconf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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