美文网首页
GITLAB批量导入用户

GITLAB批量导入用户

作者: 乌龟壳里的童话世界 | 来源:发表于2019-01-07 16:31 被阅读0次

!/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批量导入用户

      本文链接:https://www.haomeiwen.com/subject/bafhrqtx.html