SirTunnel/install.sh

17 lines
369 B
Bash
Raw Permalink Normal View History

2020-09-23 07:27:01 +02:00
#/bin/bash
caddyVersion=2.1.1
2020-09-23 07:30:42 +02:00
echo Download Caddy
2020-09-23 07:27:01 +02:00
caddyGz=caddy_${caddyVersion}_linux_amd64.tar.gz
2020-09-23 07:30:42 +02:00
curl -s -O -L https://github.com/caddyserver/caddy/releases/download/v${caddyVersion}/${caddyGz}
tar xf ${caddyGz}
echo Clean up extra Caddy files
2020-09-23 07:27:01 +02:00
rm ${caddyGz}
rm LICENSE
rm README.md
2020-09-23 07:30:42 +02:00
echo Enable Caddy to bind low ports
2020-09-23 07:27:01 +02:00
sudo setcap 'cap_net_bind_service=+ep' caddy