summaryrefslogblamecommitdiffstats
path: root/skripti/prowlarr_enable_all_indexers.sh
blob: 1c6718e57c82e0a9b75133ff07255c21beb9dc53 (plain) (tree)
1
2
3
4
5
6





                                                                                                                                                                         
#!/bin/sh
set -xeuo pipefail
curl "$1/api/v1/indexer/schema" -H "X-Api-Key: $2" | jq -c '.[]|select(.privacy=="public")' | while read -r l
do
	sed 's/"appProfileId":0,/"appProfileId":1,/' <<<$l | curl -i "$1/api/v1/indexer?" -X POST -H "Content-Type: application/json" -H "X-Api-Key: $2" --data-binary @-
done