e-smith-imp/createlinks

33 lines
855 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
# conf-imp
foreach (qw(prefs.php conf.php servers.php header.txt trailer.txt hooks.php mime_drivers.php))
{
templates2events("/home/httpd/html/horde/imp/config/$_",
qw(
bootstrap-console-save
email-update
));
}
foreach (qw(conf.php prefs.php servers.php hooks.php mime_drivers.php))
{
safe_symlink("/etc/e-smith/templates-default/template-begin-php",
"root/etc/e-smith/templates/home/httpd/html/horde/imp/config/$_/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php",
"root/etc/e-smith/templates/home/httpd/html/horde/imp/config/$_/template-end");
}
foreach (qw(
35imp_mysql_create_tables
36imp_upgrade
))
{
templates2events(
"/etc/e-smith/sql/init/$_",
qw(post-install post-upgrade));
}