You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
559 B
19 lines
559 B
{
|
|
my $domain = $DomainName || "localdomain";
|
|
my $hostname = $SystemName || "localhost";
|
|
my $ppid = $$;
|
|
$pid = fork();
|
|
if( $pid == 0 ){
|
|
# wait for SME cert to be expanded
|
|
waitpid($ppid,0);
|
|
use esmith::templates;
|
|
esmith::templates::processTemplate({
|
|
TEMPLATE_PATH => "/home/e-smith/ssl.pem/$hostname.$domain.pem" ,
|
|
TEMPLATE_EXPAND_QUEUE => [ "/" ] ,
|
|
OUTPUT_FILENAME => "/var/service/ejabberd/ssl/cert.pem" ,
|
|
UID => "ejabberd" ,
|
|
PERMS => 0640 ,
|
|
});
|
|
exec 'sv', '2', '/service/ejabberd';
|
|
}
|
|
} |