gitlab fix

This commit is contained in:
usmannasir
2019-02-21 20:24:37 +05:00
parent a4fd57685c
commit b3dbd36dc9
2 changed files with 3 additions and 0 deletions

View File

@@ -578,6 +578,7 @@ class ApplicationInstaller(multi.Thread):
try: try:
command = 'sudo GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone --depth 1 --no-single-branch git@' + defaultProvider +'.com:' + username + '/' + reponame + '.git -b ' + branch + ' ' + finalPath command = 'sudo GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone --depth 1 --no-single-branch git@' + defaultProvider +'.com:' + username + '/' + reponame + '.git -b ' + branch + ' ' + finalPath
logging.writeToFile(command)
subprocess.check_output(shlex.split(command)) subprocess.check_output(shlex.split(command))
except subprocess.CalledProcessError, msg: except subprocess.CalledProcessError, msg:
statusFile = open(tempStatusPath, 'w') statusFile = open(tempStatusPath, 'w')

View File

@@ -1766,6 +1766,8 @@ class WebsiteManager:
configContent = """Host github.com configContent = """Host github.com
IdentityFile /root/.ssh/git IdentityFile /root/.ssh/git
Host gitlab.com
IdentityFile /root/.ssh/git
""" """
path = "/home/cyberpanel/config" path = "/home/cyberpanel/config"