hedgedoc/dev-reverse-proxy/run-caddy.sh
Tilman Vatteroth 92a77d0489 fix: rename directory, fix script and correct README.md
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-25 17:00:10 +02:00

16 lines
256 B
Bash

#!/bin/bash
#
# SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
#
# SPDX-License-Identifier: AGPL-3.0-only
#
set -e
if [ ! -f caddy ]
then
curl -o caddy "https://caddyserver.com/api/download"
chmod +x ./caddy
fi
exec ./caddy run