ipasserelle-im/root/etc/e-smith/templates/home/e-smith/ssl.pem/80ejabberd.pem

19 lines
559 B
Plaintext

{
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';
}
}