fix for variable name mismatch, remove trailing space from heredoc EOF

This commit is contained in:
John Bowdre 2022-08-06 21:37:22 -05:00
parent 68c5515294
commit 073f8694f5

View file

@ -16,7 +16,7 @@ chmod 0644 $CRONTAB_FILE
if [ "$TLS_NAME" != "" ]; then
if [ "$TLS_CUSTOM_CERT" == "true" ]; then
cat << EOF > /etc/caddy/Caddyfile
$TLS_FQDN {
$TLS_NAME {
root * /syncer/library
file_server
tls /etc/caddycerts/cert.pem /etc/caddycerts/key.pem
@ -24,11 +24,11 @@ $TLS_FQDN {
EOF
else
cat << EOF > /etc/caddy/Caddyfile
$TLS_FQDN {
$TLS_NAME {
root * /syncer/library
file_server
}
EOF
EOF
fi
fi