From 151b904d36c9ad437a1e92cf79f5263f178525e8 Mon Sep 17 00:00:00 2001 From: Anders Pitman Date: Tue, 22 Sep 2020 23:30:42 -0600 Subject: [PATCH] Update scripts --- install.sh | 11 ++++++++--- run_server.sh | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) 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