Changeset 111073 in spip-zone
- Timestamp:
- Jul 10, 2018, 7:12:33 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_outils_/svn2git/trunk/create_user_gitea.sh
r111072 r111073 5 5 6 6 . create_user_gitea.conf 7 GITEA_ORG_LIST=() 7 8 8 #Obtenir l'identifiant de l'organisation 9 GITEA_ORGA_ID=$(curl \ 9 #Obtenir les identifiants pour chaque organisation 10 IFS=':' read -ra ORGAS <<< "$GITEA_ORGA" 11 for orga in "${ORGAS[@]}"; do 12 GITEA_ORGA_ID=$(curl \ 10 13 --silent \ 11 14 -X GET \ 12 15 -H "Authorization: token $GITEA_TOKEN" \ 13 $GITEA_HOST/api/v1/orgs/$ GITEA_ORGA\16 $GITEA_HOST/api/v1/orgs/$orga \ 14 17 | jq -r ".id" 15 )18 ) 16 19 17 GITEA_ORGA_TEAM_ID=$(curl\20 GITEA_ORGA_TEAM_ID=$(curl\ 18 21 --silent \ 19 22 -X GET \ 20 23 -H "Authorization: token $GITEA_TOKEN" \ 21 $GITEA_HOST/api/v1/orgs/$ GITEA_ORGA/teams \24 $GITEA_HOST/api/v1/orgs/$orga/teams \ 22 25 | jq '.[] | select(.permission == "write") | .id' 23 ) 26 ) 27 28 GITEA_ORG_LIST+=("$orga:$GITEA_ORGA_ID:$GITEA_ORGA_TEAM_ID") 29 done 24 30 25 31 while read row ; do
Note: See TracChangeset
for help on using the changeset viewer.