From 1f3e31d1002b9467655f9a15554c7349bcd265f5 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 14 Aug 2016 23:25:04 +0200 Subject: [PATCH] Fixed working directory and paths in InstallCommand --- bin/install | 2 +- module/CLI/src/Command/Install/InstallCommand.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/install b/bin/install index b1ce8a1e..c47036a9 100755 --- a/bin/install +++ b/bin/install @@ -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'; diff --git a/module/CLI/src/Command/Install/InstallCommand.php b/module/CLI/src/Command/Install/InstallCommand.php index 39fdebe6..785a004f 100644 --- a/module/CLI/src/Command/Install/InstallCommand.php +++ b/module/CLI/src/Command/Install/InstallCommand.php @@ -60,7 +60,7 @@ class InstallCommand extends Command $output->writeln([ 'Welcome to Shlink!!', - '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('Custom configuration properly generated!'); }