Skip to content

Commit ef68994

Browse files
committed
Install script - suppress interactive messages
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 43e51c5 commit ef68994

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hack/install-edge.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
set -e # stop on error
33
set -o pipefail
44

5+
export NEEDRESTART_MODE=a
6+
export DEBIAN_FRONTEND=noninteractive
7+
58
if [ "$EUID" -ne 0 ]; then
69
echo "Please run as root or with sudo"
710
exit
@@ -29,8 +32,8 @@ install_required_packages() {
2932
# to get it working in raspberry pi. No such known issues in
3033
# other distros. Hence, adding only to this block.
3134
# reference: https://github.com/openfaas/faasd/pull/237
32-
apt-get update -y
33-
apt-get install -y curl runc bridge-utils iptables iptables-persistent
35+
apt-get update -yq
36+
apt-get install -yq curl runc bridge-utils iptables iptables-persistent
3437
elif $(has_yum); then
3538
yum check-update -y
3639
yum install -y curl runc iptables-services which

0 commit comments

Comments
 (0)