bug fix: cater for custom path of wp-content

This commit is contained in:
Usman Nasir
2021-03-19 23:53:10 +05:00
parent 88924952aa
commit 20714862d7

View File

@@ -119,7 +119,10 @@ class StagingSetup(multi.Thread):
## Sync WP-Content Folder
command = 'rsync -avz %s/wp-content/ %s/wp-content/' % (masterPath, path)
command = 'wp theme path --allow-root --path=%s' % (masterPath)
WpContentPath = ProcessUtilities.outputExecutioner(command).splitlines()[-1].replace('themes', '')
command = 'rsync -avz %s %s/wp-content/' % (WpContentPath, path)
ProcessUtilities.executioner(command)
## Search and replace url
@@ -200,7 +203,10 @@ class StagingSetup(multi.Thread):
logging.statusWriter(tempStatusPath, 'Syncing data..,50')
command = 'rsync -avz %s/wp-content/ %s/wp-content/' % (child.path, masterPath)
command = 'wp theme path --allow-root --path=%s' % (masterPath)
WpContentPath = ProcessUtilities.outputExecutioner(command).splitlines()[-1].replace('themes', '')
command = 'rsync -avz %s/wp-content/ %s' % (child.path, WpContentPath)
ProcessUtilities.executioner(command)
## Search and replace url