Browse Source

retrieve the correct aliases and servername from a specified vhost

pull/63/head
Nicolas Roman 1 year ago
parent
commit
1cf62beb55
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      inc/webadmin-letsencrypt.php

+ 1
- 5
inc/webadmin-letsencrypt.php 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);


Loading…
Cancel
Save