Browse Source

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

upd
Valentin Lab 5 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 "$admin_keys" | shyaml -y key-values-0)
mkdir -p "${CONTROL_USERS_FILE%/*}" || return 1
e "$control_users" > "$CONTROL_USERS_FILE"
}
local_path_key=/etc/rsync/keys/admin

Loading…
Cancel
Save