diff --git a/rsync-backup-target/hooks/init b/rsync-backup-target/hooks/init index ae662eb..dc53ea6 100755 --- a/rsync-backup-target/hooks/init +++ b/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