From 230583642d952d4481dc7c11d656799c2e47161a Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 23 Dec 2022 14:57:17 +0100 Subject: [PATCH] apt noninteractive --- raspi.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raspi.sh b/raspi.sh index e531a5c..42ea3b1 100644 --- a/raspi.sh +++ b/raspi.sh @@ -4,9 +4,9 @@ #sudo apt-get -yy dist-upgrade # install ansible -which pip >/dev/null 2>&1 || ( sudo apt-get -yy install python3-pip ) -which git >/dev/null 2>&1 || ( sudo apt-get -yy install git ) -which ansible >/dev/null 2>&1 || ( sudo apt-get -yy install ansible ; sudo pip install ansible ; sudo apt-get -yy remove --purge ansible) +which pip >/dev/null 2>&1 || ( sudo DEBIAN_FRONTEND=noninteractive apt-get -yy install python3-pip ) +which git >/dev/null 2>&1 || ( sudo DEBIAN_FRONTEND=noninteractive apt-get -yy install git ) +which ansible >/dev/null 2>&1 || ( sudo DEBIAN_FRONTEND=noninteractive apt-get -yy install ansible ; sudo pip install ansible ; sudo DEBIAN_FRONTEND=noninteractive apt-get -yy remove --purge ansible) # run ansible playbooks for playbook in debian.ansible.basics \