update ServerName / ITK Status / And more... #47

Merged
lpoujol merged 29 commits from features/servername into master 2019-03-28 15:23:40 +01:00
Showing only changes of commit f90b127a95 - Show all commits

View file

@ -109,6 +109,10 @@ if (isset($_GET['edit']) ) {
$account_name=$servername['domain'];
// $exec_cmd_check_occurence = 'web-add.sh';
// grep -RE "^.*(ServerName|ServerAlias)[[:space:]]wutang[[:space:]]"
// faire un if else
$exec_cmd = 'web-add.sh update-servername ' . $servername['domain'] . ' ' . $servername['servername'];
sudoexec($exec_cmd, $exec_output, $exec_return);
if ($exec_return == 0) {
@ -168,7 +172,9 @@ if (isset($_GET['edit']) ) {
$alias_list = $bdd->list_serveralias($domain);
}
else {
$cmd = 'web-add.sh list-vhost';
$cmd = 'web-add.sh list-vhost ' . $domain;
if(!is_superadmin()) {
$cmd = sprintf('%s %s', $cmd, $_SESSION['user']);
}