|
@@ -8,8 +8,6 @@ use Hestia\System\Util;
|
|
|
use Hestia\WebApp\BaseSetup;
|
|
use Hestia\WebApp\BaseSetup;
|
|
|
use Hestia\WebApp\InstallationTarget\InstallationTarget;
|
|
use Hestia\WebApp\InstallationTarget\InstallationTarget;
|
|
|
|
|
|
|
|
-use function file_get_contents;
|
|
|
|
|
-
|
|
|
|
|
class WordPressSetup extends BaseSetup
|
|
class WordPressSetup extends BaseSetup
|
|
|
{
|
|
{
|
|
|
protected array $info = [
|
|
protected array $info = [
|
|
@@ -80,17 +78,6 @@ class WordPressSetup extends BaseSetup
|
|
|
'--path=' . $target->getDocRoot(),
|
|
'--path=' . $target->getDocRoot(),
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
- $wpPasswordBcryptContents = file_get_contents(
|
|
|
|
|
- 'https://raw.githubusercontent.com/roots/wp-password-bcrypt/master/wp-password-bcrypt.php',
|
|
|
|
|
- );
|
|
|
|
|
-
|
|
|
|
|
- $this->appcontext->addDirectory($target->getDocRoot('wp-content/mu-plugins/'));
|
|
|
|
|
-
|
|
|
|
|
- $this->appcontext->createFile(
|
|
|
|
|
- $target->getDocRoot('wp-content/mu-plugins/wp-password-bcrypt.php'),
|
|
|
|
|
- $wpPasswordBcryptContents,
|
|
|
|
|
- );
|
|
|
|
|
-
|
|
|
|
|
// WordPress CLI seems to have a bug that when site name has a space it will be seen as an
|
|
// WordPress CLI seems to have a bug that when site name has a space it will be seen as an
|
|
|
// extra argument. Even when properly escaped. For now just install with install.php
|
|
// extra argument. Even when properly escaped. For now just install with install.php
|
|
|
$this->appcontext->sendPostRequest(
|
|
$this->appcontext->sendPostRequest(
|