@@ -95,24 +95,24 @@ def startCloning(self):
9595
9696 ## Creating WP Site and setting Database
9797
98- command = '%s -d error_reporting=0 wp core download --path=%s' % (FinalPHPPath , path )
98+ command = '%s -d error_reporting=0 /usr/bin/ wp core download --path=%s' % (FinalPHPPath , path )
9999 ProcessUtilities .executioner (command , website .externalApp )
100100
101101 logging .statusWriter (tempStatusPath , 'Creating and copying database..,50' )
102102
103103 dbNameRestore , dbUser , dbPassword = ApplicationInstaller (None , None ).dbCreation (tempStatusPath , website )
104104
105- command = '%s -d error_reporting=0 wp core config --dbname=%s --dbuser=%s --dbpass=%s --dbhost=%s:%s --path=%s' % (FinalPHPPath , dbNameRestore , dbUser , dbPassword , ApplicationInstaller .LOCALHOST , ApplicationInstaller .PORT , path )
105+ command = '%s -d error_reporting=0 /usr/bin/ wp core config --dbname=%s --dbuser=%s --dbpass=%s --dbhost=%s:%s --path=%s' % (FinalPHPPath , dbNameRestore , dbUser , dbPassword , ApplicationInstaller .LOCALHOST , ApplicationInstaller .PORT , path )
106106 ProcessUtilities .executioner (command , website .externalApp )
107107
108108 ## Exporting and importing database
109109
110- command = '%s -d error_reporting=0 wp --allow-root --skip-plugins --skip-themes --path=%s db export %s/dbexport-stage.sql' % (FinalPHPPath , masterPath , path )
110+ command = '%s -d error_reporting=0 /usr/bin/ wp --allow-root --skip-plugins --skip-themes --path=%s db export %s/dbexport-stage.sql' % (FinalPHPPath , masterPath , path )
111111 ProcessUtilities .executioner (command )
112112
113113 ## Import
114114
115- command = '%s -d error_reporting=0 wp --allow-root --skip-plugins --skip-themes --path=%s --quiet db import %s/dbexport-stage.sql' % (FinalPHPPath , path , path )
115+ command = '%s -d error_reporting=0 /usr/bin/ wp --allow-root --skip-plugins --skip-themes --path=%s --quiet db import %s/dbexport-stage.sql' % (FinalPHPPath , path , path )
116116 ProcessUtilities .executioner (command )
117117
118118 try :
@@ -123,7 +123,7 @@ def startCloning(self):
123123
124124 ## Sync WP-Content Folder
125125
126- command = '%s -d error_reporting=0 wp theme path --skip-plugins --skip-themes --allow-root --path=%s' % (FinalPHPPath , masterPath )
126+ command = '%s -d error_reporting=0 /usr/bin/ wp theme path --skip-plugins --skip-themes --allow-root --path=%s' % (FinalPHPPath , masterPath )
127127 WpContentPath = ProcessUtilities .outputExecutioner (command ).splitlines ()[- 1 ].replace ('themes' , '' )
128128
129129 command = 'cp -R %s %s/' % (WpContentPath , path )
@@ -136,13 +136,13 @@ def startCloning(self):
136136
137137 ## Search and replace url
138138
139- command = '%s -d error_reporting=0 wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "%s" "%s"' % (FinalPHPPath , path , replaceDomain , domain )
139+ command = '%s -d error_reporting=0 /usr/bin/ wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "%s" "%s"' % (FinalPHPPath , path , replaceDomain , domain )
140140 ProcessUtilities .executioner (command )
141141
142- command = '%s -d error_reporting=0 wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "www.%s" "%s"' % (FinalPHPPath , path , replaceDomain , domain )
142+ command = '%s -d error_reporting=0 /usr/bin/ wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "www.%s" "%s"' % (FinalPHPPath , path , replaceDomain , domain )
143143 ProcessUtilities .executioner (command )
144144
145- command = '%s -d error_reporting=0 wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "https://%s" "http://%s"' % (
145+ command = '%s -d error_reporting=0 /usr/bin/ wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "https://%s" "http://%s"' % (
146146 FinalPHPPath , path , domain , domain )
147147 ProcessUtilities .executioner (command )
148148
0 commit comments