From 13304fa0b2f549e46f3ee89f34e76287958d74b1 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Thu, 18 Aug 2022 16:13:54 +0100 Subject: [PATCH] Fix for user issue with Caddy Caddy cannot be installed to /usr/local/bin due to the service file expecting it to be in /usr/bin Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- hack/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/install.sh b/hack/install.sh index e2d95ae..3711c21 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -136,7 +136,9 @@ install_caddy() { if [ ! -z "${FAASD_DOMAIN}" ]; then CADDY_VER=v2.4.3 arkade get --progress=false caddy -v ${CADDY_VER} - $SUDO install -m 755 $HOME/.arkade/bin/caddy /usr/local/bin/ + + # /usr/bin/caddy is specified in the upstream service file. + $SUDO install -m 755 $HOME/.arkade/bin/caddy /usr/bin/caddy $SUDO curl -fSLs https://raw.githubusercontent.com/caddyserver/dist/master/init/caddy.service --output /etc/systemd/system/caddy.service