mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix
This commit is contained in:
@@ -4185,13 +4185,7 @@ Require valid-user
|
||||
port = ProcessUtilities.fetchCurrentPort()
|
||||
|
||||
webhookURL = 'https://' + ipAddress + ':%s/websites/' % (port) + self.domain + '/gitNotify'
|
||||
webhookURL = webhookURL.replace(' ', '%20')
|
||||
|
||||
if website.externalApp == 'github':
|
||||
command = "ssh-keygen -f /home/%s/.ssh/%s -t rsa -N ''" % (self.domain, website.externalApp)
|
||||
ProcessUtilities.executioner(command, website.externalApp)
|
||||
|
||||
configContent = """Host github.com
|
||||
proc = httpProc(request, 'websiteFunctions/setupGit.html',
|
||||
{'domainName': self.domain, 'installed': 1, 'webhookURL': webhookURL})
|
||||
return proc.render()
|
||||
|
||||
Reference in New Issue
Block a user