Skip to content

Commit 49f527d

Browse files
committed
Set the debian frontend to noninteractive
Previously, apt-get install was reporting: debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 79, <STDIN> line 1.) debconf: falling back to frontend: Readline
1 parent 1a6c499 commit 49f527d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks/install_shell.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,15 +682,16 @@ install_file() {
682682
sed -i "/^#?password/d" "${auth_conf}"
683683
echo "password ${password}" >> "${auth_conf}"
684684
fi
685+
frontend="DEBIAN_FRONTEND=noninteractive"
685686
run_cmd 'apt-get update -y'
686687

687688
if test "$version" = 'latest'; then
688-
run_cmd "apt-get install -y puppet-agent"
689+
run_cmd "${frontend} apt-get install -y puppet-agent"
689690
else
690691
if test "x$deb_codename" != "x"; then
691-
run_cmd "apt-get install -y 'puppet-agent=${puppet_agent_version}-1${deb_codename}'"
692+
run_cmd "${frontend} apt-get install -y 'puppet-agent=${puppet_agent_version}-1${deb_codename}'"
692693
else
693-
run_cmd "apt-get install -y 'puppet-agent=${puppet_agent_version}'"
694+
run_cmd "${frontend} apt-get install -y 'puppet-agent=${puppet_agent_version}'"
694695
fi
695696
fi
696697
;;

0 commit comments

Comments
 (0)