代码拉取完成,页面将自动刷新
#!/bin/bash
# function setHarbor(){
# local OLDPATH=$(pwd)
# cd /etc/rc.d/init.d/
# pwd
# cd ${OLDPATH}
# pwd
# }
# setHarbor
# CURRENT_DIR=$(cd `dirname $0`; pwd)
# echo ${CURRENT_DIR}
# InitPwd=$(docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password | awk '{print substr($2,0)}')
# echo $InitPwd
#echo "http://root:ImUsmHosXhDNh8TflvUGU73zxzHL/hVP1HGzu3U/PhA=@10.0.2.15:30300/root/vuetest.git" > ~/.git-credentials
#git config --global credential.helper store
# cd vuetest
# rm -rf .git
# git init
# git config user.name "root"
# git config user.email "root@a.com"
# #git config user.password "$InitPwd"
# #git config credential.helper store
# git add .
# git commit --quiet -m "init"
# git remote add origin http://10.0.2.15:30300/root/vuetest.git
# expect -c "
# spawn git push -u origin master
# expect \"Username for*\"
# send \"root\r\"
# expect \"Password for*\"
# send \"${InitPwd}\r\"
# expect eof
# "
# sh ./p.git.sh < p.git.data
# expect -c "
# spawn docker exec -it gitlab bash bash -c \"
# \"
# "
docker exec gitlab gitlab-rails runner -e production 'user = User.find_by(name: "root"); user.password = "Gitlab12345"; user.password_confirmation = "Gitlab12345"; user.save!'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。