Update scripts
This commit is contained in:
parent
27cb468e02
commit
151b904d36
2 changed files with 9 additions and 4 deletions
11
install.sh
11
install.sh
|
@ -3,14 +3,19 @@
|
||||||
caddyVersion=2.1.1
|
caddyVersion=2.1.1
|
||||||
sirtunnelVersion=0.1.0
|
sirtunnelVersion=0.1.0
|
||||||
|
|
||||||
|
echo Download Caddy
|
||||||
caddyGz=caddy_${caddyVersion}_linux_amd64.tar.gz
|
caddyGz=caddy_${caddyVersion}_linux_amd64.tar.gz
|
||||||
curl -O -L https://github.com/caddyserver/caddy/releases/download/v${caddyVersion}/${caddyGz}
|
curl -s -O -L https://github.com/caddyserver/caddy/releases/download/v${caddyVersion}/${caddyGz}
|
||||||
tar xvf ${caddyGz}
|
tar xf ${caddyGz}
|
||||||
|
|
||||||
|
echo Clean up extra Caddy files
|
||||||
rm ${caddyGz}
|
rm ${caddyGz}
|
||||||
rm LICENSE
|
rm LICENSE
|
||||||
rm README.md
|
rm README.md
|
||||||
|
|
||||||
|
echo Enable Caddy to bind low ports
|
||||||
sudo setcap 'cap_net_bind_service=+ep' caddy
|
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
|
chmod +x sirtunnel
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#/bin/bash
|
#/bin/bash
|
||||||
|
|
||||||
caddy run --config caddy_config.json
|
./caddy run --config caddy_config.json
|
||||||
|
|
Loading…
Reference in a new issue