smeserver-phplist/createlinks

28 lines
1.3 KiB
Plaintext
Raw Normal View History

2013-10-11 11:08:00 +02:00
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
templates2events("/etc/e-smith/sql/init/phplistdb", qw/webapps-update bootstrap-console-save/);
templates2events("/etc/phplist/config.php", qw/webapps-update bootstrap-console-save/);
2013-10-11 11:08:00 +02:00
safe_symlink("/var/qmail/bin/qmail-newu", "root/etc/e-smith/events/webapps-update/S55phplist-qmail-assign");
2014-07-30 17:35:31 +02:00
foreach my $event (qw/webapps-update ipasserelle-update bootstrap-ldap-save/){
event_link("phplist-create-pseudo", "$event", "55");
}
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/phplist/config.php/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/phplist/config.php/template-end");
2013-10-11 11:08:00 +02:00
safe_symlink("/var/qmail/alias/.qmail-phplistbounces", "root/var/qmail/alias/.qmail-phplistbounces-default");
safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/phplist');
safe_symlink("/var/service/phplist" , 'root/service/phplist');
safe_touch("root/var/service/phplist/down");
safe_symlink("restart", "root/etc/e-smith/events/webapps-update/services2adjust/phplist");
service_link_enhanced('phplist', 'S98', '7');
service_link_enhanced('phplist', 'K12', '6');
service_link_enhanced('phplist', 'K12', '0');
safe_touch("root/var/lib/phplist/bounces.mbox");