smeserver-jappix/createlinks

17 lines
578 B
Perl

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
# Templates to expand
foreach my $event (qw/webapps-update bootstrap-console-save/){
templates2events("/etc/jappix/hosts.xml", $event);
templates2events("/etc/jappix/main.xml", $event);
templates2events("/etc/jappix/installed.xml", $event);
}
# Conf are XML files
safe_touch("root/etc/e-smith/templates/etc/jappix/hosts.xml/template-begin");
safe_touch("root/etc/e-smith/templates/etc/jappix/main.xml/template-begin");
safe_touch("root/etc/e-smith/templates/etc/jappix/installed.xml/template-begin");