54 lines
1.8 KiB
Perl
54 lines
1.8 KiB
Perl
#!/usr/bin/perl -w
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
####################
|
|
# links to add
|
|
|
|
# templates to expand
|
|
|
|
foreach (qw(
|
|
/etc/cron.d/runmysqlbackup
|
|
/etc/automysqlbackup/mysql57.conf
|
|
/etc/automysqlbackup/mymaria.conf
|
|
/etc/automysqlbackup/mymaria101.conf
|
|
/etc/automysqlbackup/mymaria102.conf
|
|
/etc/automysqlbackup/mymaria103.conf
|
|
/etc/automysqlbackup/mymaria105.conf
|
|
/etc/e-smith/sql/init/automysqlbackup
|
|
/etc/e-smith/sql/init57/automysqlbackup
|
|
/etc/e-smith/sql/init101/automysqlbackup
|
|
/etc/e-smith/sql/init102/automysqlbackup
|
|
/etc/e-smith/sql/init103/automysqlbackup
|
|
/etc/e-smith/sql/init105/automysqlbackup
|
|
))
|
|
{
|
|
templates2events(
|
|
"$_", qw(
|
|
smeserver-automysqlbackup-update
|
|
console-save
|
|
bootstrap-console-save
|
|
)
|
|
);
|
|
}
|
|
|
|
# Not required I think
|
|
|
|
# add action /etc/e-smith/events/actions/automysqlbackup to automysqlbackup-update bootstrap-console-save
|
|
#foreach my $event (qw( smeserver-automysqlbackup-update
|
|
# bootstrap-console-save))
|
|
# {
|
|
# event_link("automysqlbackup", $event, "15");
|
|
#}
|
|
|
|
# add mysql.init restart to automysqlbackup-update
|
|
foreach my $event (qw( smeserver-automysqlbackup-update))
|
|
{
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init");
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb57-mysql.init");
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb101-mysql.init");
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb102-mysql.init");
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb103-mysql.init");
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb105-mysql.init");
|
|
}
|