mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-07-16 10:21:52 +02:00
cent8 repo
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user