Commit 84f46aab authored by 金凯强's avatar 金凯强 🎨

修复第二次安装会报错的问题

parent 326a7211
from install_docker import install_docker
from install_runner import install_runner
from set_env import init_env
from set_proxy import set_linux_global_proxy, set_docker_service_proxy, set_docekr_container_proxy, \
set_gitlab_runner_git_proxy
if __name__ == "__main__":
HSCUSCODE = init_env()
......
......@@ -54,7 +54,7 @@ def register_huansi_runner(HSCUSCODE):
--tag-list huansi.{hscode}".format(hscode=HSCUSCODE))
assert s1 == 0, "huansi_runner配置失败,如果要重新执行,不要再次执行init.py文件,请直接执行install_docker.py文件"
if os.path.exists('/etc/gitlab-runner'):
install_runner()
print("runner安装成功")
if __name__ == '__main__':
if os.path.exists('/etc/gitlab-runner'):
install_runner()
print("runner安装成功")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment