From c57ff11e9b0465caa63c7c733455182658a182e1 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 9 Oct 2020 11:43:17 +0200 Subject: [PATCH] added output var --- preconf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preconf.sh b/preconf.sh index 36ff9ee..b61e6c7 100644 --- a/preconf.sh +++ b/preconf.sh @@ -3,7 +3,7 @@ mbranch=master if [ -z ${password+x} ]; then echo 'Error $password is not set'; fi if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then - if [ -z ${DEBIAN_FRONTEND+x} ]; then echo 'dpkg env not set' ; else CurDebFrond="$DEBIAN_FRONTEND"; fi #checking and saving DEBIAN_FRONTEND + if [ -z ${DEBIAN_FRONTEND+x} ]; then echo 'dpkg env not set' > $OUTPUT 2>&1 ; else CurDebFrond="$DEBIAN_FRONTEND"; fi #checking and saving DEBIAN_FRONTEND export DEBIAN_FRONTEND=noninteractive debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password"