Browse Source

[webapp] follow redirects when install wordpress (ex: http->https)

Robert Zollner 6 years ago
parent
commit
8597ef516a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/src/app/WebApp/Installers/WordpressSetup.php

+ 1 - 1
web/src/app/WebApp/Installers/WordpressSetup.php

@@ -51,7 +51,7 @@ class WordpressSetup extends BaseSetup {
             throw new \Exception("Error installing config file in: " . $tmp_configpath . " to:" . $this->getDocRoot("wp-config.php") . $result->text );
             throw new \Exception("Error installing config file in: " . $tmp_configpath . " to:" . $this->getDocRoot("wp-config.php") . $result->text );
         }
         }
 
 
-        exec("/usr/bin/curl --post301 --insecure --resolve ".$this->domain.":80:".$this->appcontext->getWebDomainIp($this->domain)." " 
+        exec("/usr/bin/curl --location --post301 --insecure --resolve ".$this->domain.":80:".$this->appcontext->getWebDomainIp($this->domain)." "
             . escapeshellarg("http://".$this->domain."/wp-admin/install.php?step=2")
             . escapeshellarg("http://".$this->domain."/wp-admin/install.php?step=2")
             . " -d " . escapeshellarg(
             . " -d " . escapeshellarg(
                 "weblog_title=" . rawurlencode($options['site_name'])
                 "weblog_title=" . rawurlencode($options['site_name'])