restart mysql

This commit is contained in:
usmannasir
2024-11-12 12:25:38 +05:00
parent 6778ad1eaa
commit fba679cc5f
2 changed files with 12 additions and 6 deletions

View File

@@ -52,14 +52,14 @@ class backupSchedule:
backupSchedule.remoteBackupLogging(backupLogPath, "Starting local backup for: " + virtualHost)
###
pathToFile = "/home/cyberpanel/" + str(randint(10**9, 10**10 - 1))
randNBR = str(randint(10**9, 10**10 - 1))
pathToFile = "/home/cyberpanel/" + randNBR
file = open(pathToFile, "w+")
file.close()
port = ProcessUtilities.fetchCurrentPort()
finalData = json.dumps({'randomFile': pathToFile, 'websiteToBeBacked': virtualHost})
finalData = json.dumps({'randomFile': randNBR, 'websiteToBeBacked': virtualHost})
r = requests.post("https://localhost:%s/backup/localInitiate" % (port), data=finalData, verify=False)
if os.path.exists(ProcessUtilities.debugPath):