Ejemplo n.º 1
0
function reconfigure_instance_ssl($hostname)
{
    if ($hostname == "master") {
        return;
    }
    $maincf = new maincf_multi($hostname);
    $maincf->certificate_generate();
    $maincf->buildconf();
    $maincf->buildmaster();
    echo "Starting......: " . date("H:i:s") . " restarting Postfix {$GLOBALS["postmulti"]} -i postfix-{$hostname} -p stop\n";
    shell_exec("{$GLOBALS["postmulti"]} -i postfix-{$hostname} -p stop");
    shell_exec("{$GLOBALS["postmulti"]} -i postfix-{$hostname} -p start");
}