diff --git a/install.sh b/install.sh index 45a794d..2598ca1 100755 --- a/install.sh +++ b/install.sh @@ -3,14 +3,19 @@ caddyVersion=2.1.1 sirtunnelVersion=0.1.0 +echo Download Caddy caddyGz=caddy_${caddyVersion}_linux_amd64.tar.gz -curl -O -L https://github.com/caddyserver/caddy/releases/download/v${caddyVersion}/${caddyGz} -tar xvf ${caddyGz} +curl -s -O -L https://github.com/caddyserver/caddy/releases/download/v${caddyVersion}/${caddyGz} +tar xf ${caddyGz} + +echo Clean up extra Caddy files rm ${caddyGz} rm LICENSE rm README.md +echo Enable Caddy to bind low ports sudo setcap 'cap_net_bind_service=+ep' caddy -curl -O -L https://github.com/anderspitman/SirTunnel/releases/download/${sirtunnelVersion}/sirtunnel +echo Download sirtunnel binary +curl -s -O -L https://github.com/anderspitman/SirTunnel/releases/download/${sirtunnelVersion}/sirtunnel chmod +x sirtunnel diff --git a/run_server.sh b/run_server.sh index 0752434..c6699c3 100755 --- a/run_server.sh +++ b/run_server.sh @@ -1,3 +1,3 @@ #/bin/bash -caddy run --config caddy_config.json +./caddy run --config caddy_config.json