GITLAB批量导入用户

!/bin/sh

创建gitlab用户

userinfo="userinfo.txt"
while read line
do
name=echo $line | awk '{print $1}'
mail=echo $line | awk '{print $2}'
curl -d password=1234567&email=$mail&username=$name&name=$name&confirmed_at=$mail&skip_confirmation=true&private_token=XXXXXXXXXXXX" "http://********/api/v4/users

你可能感兴趣的:(GITLAB批量导入用户)