fix: encrypt backup sync ssh key correctly

This commit is contained in:
m3tam3re
2026-06-20 09:32:19 +02:00
parent 775bd59613
commit 14008a4bc9
3 changed files with 6 additions and 1 deletions
@@ -48,6 +48,11 @@ in {
lock_file="/run/${serviceName}/${serviceName}.lock"
if ! ssh-keygen -y -f ${sshKey} >/dev/null; then
echo "Invalid SSH private key secret at ${sshKey}" >&2
exit 1
fi
flock -n "$lock_file" \
rsync \
-aH \