bug fix: git attach

This commit is contained in:
Usman Nasir
2019-08-29 14:11:51 +05:00
parent 7686dbcb73
commit eb80ea8006
4 changed files with 4 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ application.controller('loginSystem', function($scope,$http,$window) {
} }
else{ else{
$("#loginFailed").hide(); $("#loginFailed").hide();
$window.location.href = '/base'; $window.location.href = '/base/';
} }

View File

@@ -558,8 +558,6 @@ class ApplicationInstaller(multi.Thread):
## checking for directories/files ## checking for directories/files
logging.writeToFile(finalPath)
if self.dataLossCheck(finalPath, tempStatusPath) == 0: if self.dataLossCheck(finalPath, tempStatusPath) == 0:
return 0 return 0
@@ -570,7 +568,7 @@ class ApplicationInstaller(multi.Thread):
statusFile.close() statusFile.close()
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 = 'git clone --depth 1 --no-single-branch git@' + defaultProvider +'.com:' + username + '/' + reponame + '.git -b ' + branch + ' ' + finalPath
ProcessUtilities.executioner(command, externalApp) ProcessUtilities.executioner(command, externalApp)
except subprocess.CalledProcessError, msg: except subprocess.CalledProcessError, msg:
statusFile = open(tempStatusPath, 'w') statusFile = open(tempStatusPath, 'w')

View File

@@ -78,7 +78,7 @@ application.controller('loginSystem', function($scope,$http,$window) {
} }
else{ else{
$("#loginFailed").hide(); $("#loginFailed").hide();
$window.location.href = '/base'; $window.location.href = '/base/';
} }

View File

@@ -1857,6 +1857,7 @@ class WebsiteManager:
configContent = """Host github.com configContent = """Host github.com
IdentityFile /home/%s/.ssh/%s IdentityFile /home/%s/.ssh/%s
StrictHostKeyChecking no
""" % (self.domain, website.externalApp) """ % (self.domain, website.externalApp)
path = "/home/cyberpanel/config" path = "/home/cyberpanel/config"