install.sh: quiet apt install for Vagrant
Vagrant VM provisioning doesn't have any mechanism for user interaction.
For this reason, it is necessary to tell APT that we are in a
non-interactive session and any install question should be answered
automatically by its preset.
For this reason, according to issue #42 and GitHub PR #43, I propose to
add "quiet" option to install.sh. This option tells Debian-based systems
to run APT in non-interactive mode. In case of important questions
during install, we can update the preset list specified in quiet_install
subroutine.
Flag functionality can always be extended in the future to support
unexpected cases where Vagrant provision hangs due to user interaction
request by some other program.
Change-Id: Iab3ce5f9b19cd6bfcf2fa180c433fb5d5d521914
diff --git a/Vagrantfile b/Vagrantfile
index f3bb364..7095c07 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -13,7 +13,7 @@
git clone --depth 1 https://github.com/named-data/mini-ndn.git
pushd mini-ndn
fi
-./install.sh -a
+./install.sh -qa
SCRIPT