mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-22 14:53:30 +00:00
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) <alexellis2@gmail.com>
This commit is contained in:
@ -136,7 +136,9 @@ install_caddy() {
|
|||||||
if [ ! -z "${FAASD_DOMAIN}" ]; then
|
if [ ! -z "${FAASD_DOMAIN}" ]; then
|
||||||
CADDY_VER=v2.4.3
|
CADDY_VER=v2.4.3
|
||||||
arkade get --progress=false caddy -v ${CADDY_VER}
|
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
|
$SUDO curl -fSLs https://raw.githubusercontent.com/caddyserver/dist/master/init/caddy.service --output /etc/systemd/system/caddy.service
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user