mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 23:23:42 -06:00
Fixed working directory and paths in InstallCommand
This commit is contained in:
parent
2617ef1547
commit
1f3e31d100
@ -4,7 +4,7 @@ use Shlinkio\Shlink\CLI\Command\Install\InstallCommand;
|
||||
use Symfony\Component\Console\Application;
|
||||
use Zend\Config\Writer\PhpArray;
|
||||
|
||||
chdir(dirname(__DIR__) . '/..');
|
||||
chdir(dirname(__DIR__));
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
|
@ -60,7 +60,7 @@ class InstallCommand extends Command
|
||||
|
||||
$output->writeln([
|
||||
'<info>Welcome to Shlink!!</info>',
|
||||
'This will guide you through the installation process.',
|
||||
'This process will guide you through the installation.',
|
||||
]);
|
||||
|
||||
// Check if a cached config file exists and drop it if so
|
||||
@ -84,7 +84,7 @@ class InstallCommand extends Command
|
||||
|
||||
// Generate config params files
|
||||
$config = $this->buildAppConfig($params);
|
||||
$this->configWriter->toFile(__DIR__ . '/../../../../../config/params/generated_config.php', $config, false);
|
||||
$this->configWriter->toFile('config/params/generated_config.php', $config, false);
|
||||
$output->writeln('<info>Custom configuration properly generated!</info>');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user