Browse Source

fix: [rsync-backup-target] prevent error on ``init`` for missing file

pull/43/head
Valentin Lab 6 months ago
parent
commit
5ff1eac3e8
  1. 2
      rsync-backup-target/hooks/init

2
rsync-backup-target/hooks/init

@ -51,8 +51,8 @@ rebuild-config() {
done < <(echo "$keys" | shyaml get-values-0) | file_put "$host_path_key/$ident/.ssh/authorized_keys" done < <(echo "$keys" | shyaml get-values-0) | file_put "$host_path_key/$ident/.ssh/authorized_keys"
done < <(echo "$admin_keys" | shyaml -y key-values-0) done < <(echo "$admin_keys" | shyaml -y key-values-0)
mkdir -p "${CONTROL_USERS_FILE%/*}" || return 1
e "$control_users" > "$CONTROL_USERS_FILE" e "$control_users" > "$CONTROL_USERS_FILE"
} }
local_path_key=/etc/rsync/keys/admin local_path_key=/etc/rsync/keys/admin

Loading…
Cancel
Save