initial commit of file from CVS for smeserver-nag on Sat Sep 7 20:45:20 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:45:20 +10:00
parent 92c36e6425
commit c74b9035ea
50 changed files with 1220 additions and 2 deletions

30
createlinks Executable file
View File

@@ -0,0 +1,30 @@
#!/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));
}