fix: encrypt backup sync ssh key correctly
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user