mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-26 08:43:23 +00:00
Install script - suppress interactive messages
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
@ -2,6 +2,9 @@
|
|||||||
set -e # stop on error
|
set -e # stop on error
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
export NEEDRESTART_MODE=a
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
echo "Please run as root or with sudo"
|
echo "Please run as root or with sudo"
|
||||||
exit
|
exit
|
||||||
@ -29,8 +32,8 @@ install_required_packages() {
|
|||||||
# to get it working in raspberry pi. No such known issues in
|
# to get it working in raspberry pi. No such known issues in
|
||||||
# other distros. Hence, adding only to this block.
|
# other distros. Hence, adding only to this block.
|
||||||
# reference: https://github.com/openfaas/faasd/pull/237
|
# reference: https://github.com/openfaas/faasd/pull/237
|
||||||
apt-get update -y
|
apt-get update -yq
|
||||||
apt-get install -y curl runc bridge-utils iptables iptables-persistent
|
apt-get install -yq curl runc bridge-utils iptables iptables-persistent
|
||||||
elif $(has_yum); then
|
elif $(has_yum); then
|
||||||
yum check-update -y
|
yum check-update -y
|
||||||
yum install -y curl runc iptables-services which
|
yum install -y curl runc iptables-services which
|
||||||
|
Reference in New Issue
Block a user