Skip to content

Commit

Permalink
Merge pull request #136 from joomlatools/feature/135-alias
Browse files Browse the repository at this point in the history
Fix vhost:alias command
  • Loading branch information
amazeika authored Feb 15, 2021
2 parents 214c9e6 + fd6e5a0 commit 099bae7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Joomlatools/Console/Command/Vhost/Alias.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

foreach ($restart as $server)
{
if ($command = $this->getOption(sprintf('%s-restart', $server))) {
if ($command = $input->getOption(sprintf('%s-restart', $server))) {
`sudo $command`;
} else {
$ignored[] = $server;
Expand All @@ -110,12 +110,12 @@ protected function _updateAliases($site, $alias, $delete = false, $input, $appli
{
case 'nginx':
$keyword = 'server_name';
$file = sprintf('%s/sites-available/1-%s.conf', $input->getOption('apache-path'), $site);
$file = sprintf('%s/sites-available/1-%s.conf', $input->getOption('nginx-path'), $site);
break;
case 'apache':
default:
$keyword = 'ServerAlias';
$file = sprintf('%s/sites-available/1-%s.conf', $input->getOption('nginx-path'), $site);
$file = sprintf('%s/sites-available/1-%s.conf', $input->getOption( 'apache-path'), $site);
break;
};

Expand Down

0 comments on commit 099bae7

Please sign in to comment.