mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-18 12:31:27 +00:00
Update Installer.php
This commit is contained in:
parent
06d60ac351
commit
b9a66fed95
1 changed files with 1 additions and 2 deletions
|
@ -97,7 +97,6 @@ class Installer extends Command
|
||||||
if(extension_loaded($ext) == false) {
|
if(extension_loaded($ext) == false) {
|
||||||
$this->error("- {$ext} extension not found, aborting installation");
|
$this->error("- {$ext} extension not found, aborting installation");
|
||||||
exit;
|
exit;
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->info("- Required PHP extensions found!");
|
$this->info("- Required PHP extensions found!");
|
||||||
|
@ -221,7 +220,7 @@ class Installer extends Command
|
||||||
$envPath = app()->environmentFilePath();
|
$envPath = app()->environmentFilePath();
|
||||||
$payload = file_get_contents($envPath);
|
$payload = file_get_contents($envPath);
|
||||||
|
|
||||||
if ($existing = $this->existingEnv($key, $payload)) {
|
if ($existing == $this->existingEnv($key, $payload)) {
|
||||||
$payload = str_replace("{$key}={$existing}", "{$key}=\"{$value}\"", $payload);
|
$payload = str_replace("{$key}={$existing}", "{$key}=\"{$value}\"", $payload);
|
||||||
$this->storeEnv($payload);
|
$this->storeEnv($payload);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue