From 120a34cfef93412d9e4835fc058cba770e7a4c35 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 19 Feb 2025 11:16:06 +0000 Subject: [PATCH] Update post-installation message on container downloads Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- cmd/install.go | 10 ++++++++-- hack/install-edge.sh | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cmd/install.go b/cmd/install.go index ea5c245..d2ca3b6 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -84,11 +84,17 @@ func runInstall(_ *cobra.Command, _ []string) error { return err } - fmt.Println(`Check status with: + fmt.Println(` +The initial setup downloads various container images, which may take a +minute or two depending on your connection. + +Check the status of the faasd service with: + sudo journalctl -u faasd --lines 100 -f Login with: - sudo -E cat /var/lib/faasd/secrets/basic-auth-password | faas-cli login -s`) + sudo -E cat /var/lib/faasd/secrets/basic-auth-password | faas-cli login -s +`) return nil } diff --git a/hack/install-edge.sh b/hack/install-edge.sh index 60ebdaa..49c9e8b 100644 --- a/hack/install-edge.sh +++ b/hack/install-edge.sh @@ -1,5 +1,7 @@ #!/bin/bash +# Copyright OpenFaaS Ltd 2025 + set -e # stop on error set -o pipefail @@ -104,7 +106,6 @@ echo "" echo "sudo mkdir -p /var/lib/faasd/secrets" echo "sudo nano /var/lib/faasd/secrets/openfaas_license" echo "" -echo "" echo "4. Then perform the final installation steps" echo "" echo "sudo -E sh -c \"cd ${tmpdir}/var/lib/faasd && faasd install\""