From 0d22fb6dea35aa90dad3b197cc15b9afa4561401 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sun, 29 Nov 2020 13:01:42 +0500 Subject: [PATCH] bug fix: https://github.com/usmannasir/cyberpanel/issues/489 --- websiteFunctions/website.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index 10b47cf85..48115127b 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -4340,6 +4340,9 @@ StrictHostKeyChecking no command = 'mkdir -p /home/%s/.ssh/' % (domain) ProcessUtilities.executioner(command) + command = 'chown %s:%s /home/%s/.ssh/' % (website.externalApp, website.externalApp, domain) + ProcessUtilities.executioner(command) + tempPath = "/home/cyberpanel/" + str(randint(1000, 9999)) writeToFile = open(tempPath, "w")