Skip to content

Commit 8597ef5

Browse files
committed
[webapp] follow redirects when install wordpress (ex: http->https)
1 parent b2fd784 commit 8597ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/app/WebApp/Installers/WordpressSetup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function install(array $options = null)
5151
throw new \Exception("Error installing config file in: " . $tmp_configpath . " to:" . $this->getDocRoot("wp-config.php") . $result->text );
5252
}
5353

54-
exec("/usr/bin/curl --post301 --insecure --resolve ".$this->domain.":80:".$this->appcontext->getWebDomainIp($this->domain)." "
54+
exec("/usr/bin/curl --location --post301 --insecure --resolve ".$this->domain.":80:".$this->appcontext->getWebDomainIp($this->domain)." "
5555
. escapeshellarg("http://".$this->domain."/wp-admin/install.php?step=2")
5656
. " -d " . escapeshellarg(
5757
"weblog_title=" . rawurlencode($options['site_name'])

0 commit comments

Comments
 (0)