WIP: feat(restic): migrate to systemd template units #11

Draft
transcaffeine wants to merge 3 commits from transcaffeine/restic-systemd-template-units into main
15 changed files with 235 additions and 151 deletions
Showing only changes of commit 59505a0759 - Show all commits

View File

@ -4,7 +4,7 @@ set -euo pipefail
LEGO_BINARY=$(/usr/bin/env which lego) LEGO_BINARY=$(/usr/bin/env which lego)
if [[ -n "${LEGO_HTTP_FALLBACK_PORT:-}" ]]; then if [[ -n "${LEGO_HTTP_FALLBACK_PORT:-}" ]]; then
if ! nc_binary="$(type -p \"nc\")" || [[ -z $nc_binary ]]; then if ! nc_binary="$(type -p 'nc')" || [[ -z $nc_binary ]]; then
echo "nc not found (in PATH), exiting" echo "nc not found (in PATH), exiting"
exit 1 exit 1
fi fi