#!/bin/bash

mkdir /home/caddy
cd /home/caddy

git init
git pull https://github.com/caddyserver/caddy.git
go build -C cmd/caddy -o /usr/bin/caddy

rm -r /home/caddy