Skip to content

Commit

Permalink
fixes archivo igual al que estaba en el server
Browse files Browse the repository at this point in the history
  • Loading branch information
asobrado committed Nov 23, 2022
1 parent 7f52555 commit 16d91ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CoreBundle/Command/CertificateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
{
/** @var EntityManager $em */
$em = $this->getContainer()->get('doctrine.orm.entity_manager');
$public_path = $this->getContainer()->get('kernel')->getRootDir().'/../web';
$public_path = $this->getContainer()->get('kernel')->getProjectDir().'/public';

# Se toma la ip actual del servidor
$server_ip = gethostbyname('servicio.prebi.unlp.edu.ar');
Expand All @@ -66,8 +66,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'--expand certonly '.
'--webroot -w '.$public_path.' '.
'-d '.implode(' -d ', $valid_domains).' -d '.$directory->getHost();
$output->writeln($command);

# Solicitud de certificado
$output->writeln(shell_exec($command));

return 0;
}

}

0 comments on commit 16d91ef

Please sign in to comment.