mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
bug fix: git attach
This commit is contained in:
@@ -78,7 +78,7 @@ application.controller('loginSystem', function($scope,$http,$window) {
|
||||
}
|
||||
else{
|
||||
$("#loginFailed").hide();
|
||||
$window.location.href = '/base';
|
||||
$window.location.href = '/base/';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -558,8 +558,6 @@ class ApplicationInstaller(multi.Thread):
|
||||
|
||||
## checking for directories/files
|
||||
|
||||
logging.writeToFile(finalPath)
|
||||
|
||||
if self.dataLossCheck(finalPath, tempStatusPath) == 0:
|
||||
return 0
|
||||
|
||||
@@ -570,7 +568,7 @@ class ApplicationInstaller(multi.Thread):
|
||||
statusFile.close()
|
||||
|
||||
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)
|
||||
except subprocess.CalledProcessError, msg:
|
||||
statusFile = open(tempStatusPath, 'w')
|
||||
|
||||
@@ -78,7 +78,7 @@ application.controller('loginSystem', function($scope,$http,$window) {
|
||||
}
|
||||
else{
|
||||
$("#loginFailed").hide();
|
||||
$window.location.href = '/base';
|
||||
$window.location.href = '/base/';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1857,6 +1857,7 @@ class WebsiteManager:
|
||||
|
||||
configContent = """Host github.com
|
||||
IdentityFile /home/%s/.ssh/%s
|
||||
StrictHostKeyChecking no
|
||||
""" % (self.domain, website.externalApp)
|
||||
|
||||
path = "/home/cyberpanel/config"
|
||||
|
||||
Reference in New Issue
Block a user