smeserver-nag/createlinks

31 lines
728 B
Perl
Executable File

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
#conf-nag
foreach (qw(conf.php prefs.php))
{
templates2events("/home/httpd/html/horde/nag/config/$_",
qw(email-update bootstrap-console-save));
}
foreach (qw(conf.php prefs.php))
{
safe_symlink("/etc/e-smith/templates-default/template-begin-php",
"root/etc/e-smith/templates/home/httpd/html/horde/nag/config/$_/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php",
"root/etc/e-smith/templates/home/httpd/html/horde/nag/config/$_/template-end");
}
foreach (qw(
80mysql.create.nag
81nag_upgrade
))
{
templates2events(
"/etc/e-smith/sql/init/$_",
qw(post-install post-upgrade));
}