Skip to content

Commit

Permalink
Install script - suppress interactive messages
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Feb 19, 2025
1 parent 43e51c5 commit ef68994
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hack/install-edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set -e # stop on error
set -o pipefail

export NEEDRESTART_MODE=a
export DEBIAN_FRONTEND=noninteractive

if [ "$EUID" -ne 0 ]; then
echo "Please run as root or with sudo"
exit
Expand Down Expand Up @@ -29,8 +32,8 @@ install_required_packages() {
# to get it working in raspberry pi. No such known issues in
# other distros. Hence, adding only to this block.
# reference: https://github.com/openfaas/faasd/pull/237
apt-get update -y
apt-get install -y curl runc bridge-utils iptables iptables-persistent
apt-get update -yq
apt-get install -yq curl runc bridge-utils iptables iptables-persistent
elif $(has_yum); then
yum check-update -y
yum install -y curl runc iptables-services which
Expand Down

0 comments on commit ef68994

Please sign in to comment.