Update scripts

This commit is contained in:
Anders Pitman 2020-09-22 23:30:42 -06:00
parent 27cb468e02
commit 151b904d36
2 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -1,3 +1,3 @@
#/bin/bash
caddy run --config caddy_config.json
./caddy run --config caddy_config.json