Fixed working directory and paths in InstallCommand

This commit is contained in:
Alejandro Celaya 2016-08-14 23:25:04 +02:00
parent 2617ef1547
commit 1f3e31d100
2 changed files with 3 additions and 3 deletions

View File

@ -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';

View File

@ -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>');
}