wp manager cmplt

This commit is contained in:
Usman Nasir
2021-01-12 17:56:36 +05:00
parent 84a375e0dc
commit 5dd37847b4
6 changed files with 103 additions and 37 deletions

View File

@@ -1646,6 +1646,14 @@ class backupUtilities:
command = "wp search-replace '%s' '%s' --path=%s --allow-root" % (self.extraArgs['sourceDomain'], self.extraArgs['domain'], path)
ProcessUtilities.outputExecutioner(command)
command = "wp search-replace 'www.%s' '%s' --path=%s --allow-root" % (
self.extraArgs['sourceDomain'], self.extraArgs['domain'], path)
ProcessUtilities.outputExecutioner(command)
command = "wp search-replace 'www.%s' '%s' --path=%s --allow-root" % (
self.extraArgs['domain'], self.extraArgs['domain'], path)
ProcessUtilities.outputExecutioner(command)
command = 'rm -rf %s' % (self.extractedPath)
ProcessUtilities.executioner(command)