retrieve the correct aliases and servername from a specified vhost

This commit is contained in:
Nicolas Roman 2019-07-04 18:00:59 +02:00
parent 3ab7a01077
commit 1cf62beb55
1 changed files with 1 additions and 5 deletions

View File

@ -7,11 +7,7 @@ use lib\LetsEncrypt as letsencryt;
// store domain and aliases in session
if (!isset($_SESSION['lestencrypt-domains']) || empty($_SESSION['letsencrypt-domains'])) {
$domain = $params[1];
$cmd = 'web-add.sh list-vhost';
if (!is_superadmin()) {
$cmd = sprintf('%s %s', $cmd, $domain);
}
$cmd = 'web-add.sh list-vhost ' . $domain;
sudoexec($cmd, $data_output, $exec_return);