cent8 repo

This commit is contained in:
Usman Nasir
2020-04-13 00:58:56 +05:00
parent 2617c6cc07
commit 6f7977fece
6 changed files with 33 additions and 122 deletions

View File

@@ -66,7 +66,7 @@ class StagingSetup(multi.Thread):
masterPath = '/home/%s/public_html' % (masterDomain)
command = 'rsync -avzh --exclude "%s" --exclude "wp-content/backups" --exclude "wp-content/updraft" --exclude "wp-content/cache" --exclude "wp-content/plugins/litespeed-cache" %s/ %s' % (
command = 'rsync -avzh --exclude "%s" --exclude ".git" --exclude "wp-content/backups" --exclude "wp-content/updraft" --exclude "wp-content/cache" --exclude "wp-content/plugins/litespeed-cache" %s/ %s' % (
domain, masterPath, path)
ProcessUtilities.executioner(command, website.externalApp)

View File

@@ -2760,14 +2760,11 @@ StrictHostKeyChecking no
writeToFile.write(message)
writeToFile.close()
extraArgs['tempStatusPath'] = tempStatusPath
st = StagingSetup('startCloning', extraArgs)
st.start()
data_ret = {'status': 1, 'error_message': 'None', 'tempStatusPath': tempStatusPath}
json_data = json.dumps(data_ret)
return HttpResponse(json_data)