From 27cb468e029e3b3c77f9d54ceb7d3e6e34e912de Mon Sep 17 00:00:00 2001 From: Anders Pitman Date: Tue, 22 Sep 2020 23:27:01 -0600 Subject: [PATCH] Add install and run scripts --- install.sh | 16 ++++++++++++++++ run_server.sh | 3 +++ 2 files changed, 19 insertions(+) create mode 100755 install.sh create mode 100755 run_server.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..45a794d --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#/bin/bash + +caddyVersion=2.1.1 +sirtunnelVersion=0.1.0 + +caddyGz=caddy_${caddyVersion}_linux_amd64.tar.gz +curl -O -L https://github.com/caddyserver/caddy/releases/download/v${caddyVersion}/${caddyGz} +tar xvf ${caddyGz} +rm ${caddyGz} +rm LICENSE +rm README.md + +sudo setcap 'cap_net_bind_service=+ep' caddy + +curl -O -L https://github.com/anderspitman/SirTunnel/releases/download/${sirtunnelVersion}/sirtunnel +chmod +x sirtunnel diff --git a/run_server.sh b/run_server.sh new file mode 100755 index 0000000..0752434 --- /dev/null +++ b/run_server.sh @@ -0,0 +1,3 @@ +#/bin/bash + +caddy run --config caddy_config.json