Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
anderspitman committed Sep 23, 2020
1 parent 27cb468 commit 151b904
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion run_server.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#/bin/bash

caddy run --config caddy_config.json
./caddy run --config caddy_config.json

0 comments on commit 151b904

Please sign in to comment.