/opt/gogs/gogs admin create-user –name=root –password=123456 –admin=true --email=abc@123.com –config=/etc/gogs/conf/app.ini

1
2
3
oc project cicd &&
gogspodname=$(oc get pod | grep gogs | grep -v postgresql| awk '{print $1}')
oc rsh $gogspodname /opt/gogs/gogs admin create-user --name=root --password=123456 --admin=true --email=abc@123.com --config=/etc/gogs/conf/app.ini