Преглед изворни кода

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

Robert Zollner пре 6 година
родитељ
комит
8597ef516a
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );
         }
 
-        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")
             . " -d " . escapeshellarg(
                 "weblog_title=" . rawurlencode($options['site_name'])