You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by jo...@apache.org on 2019/03/27 15:50:31 UTC

[impala] 02/06: Move DEBIAN_FRONTEND=noninteractive variable to the ubuntu section of the script

This is an automated email from the ASF dual-hosted git repository.

joemcdonnell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit eb9021119b332005ac409c32c064e47c0be6ec02
Author: Hector Acosta <he...@cloudera.com>
AuthorDate: Mon Mar 11 09:07:07 2019 -0700

    Move DEBIAN_FRONTEND=noninteractive variable to the ubuntu section of the script
    
    This also changes the behavior to always use DEBIAN_FRONTEND=noninteractive
    even for interactive terminals.
    
    Change-Id: Ifab2f56d3e119e4e73685c3cbd5249760ceb33ac
    Reviewed-on: http://gerrit.cloudera.org:8080/12723
    Reviewed-by: Joe McDonnell <jo...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 bin/bootstrap_system.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/bootstrap_system.sh b/bin/bootstrap_system.sh
index cb869ff..2e0f3d4 100755
--- a/bin/bootstrap_system.sh
+++ b/bin/bootstrap_system.sh
@@ -63,8 +63,6 @@ then
       exit 1
     fi
   done
-else
-  export DEBIAN_FRONTEND=noninteractive
 fi
 
 set -x
@@ -94,13 +92,13 @@ else
     echo "This script only supports Ubuntu or RedHat" >&2
     exit 1
   fi
-
   if ! [[ $DISTRIB_RELEASE = 16.04 ]]
   then
     echo "This script only supports 16.04 of Ubuntu" >&2
     exit 1
   fi
   UBUNTU=true
+  export DEBIAN_FRONTEND=noninteractive
 fi
 if grep docker /proc/1/cgroup; then
   IN_DOCKER=true