Просмотр исходного кода

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

Robert Zollner 6 лет назад
Родитель
Сommit
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'])