initial commit of file from CVS for smeserver-automysqlbackup on Sat Sep 7 20:08:47 AEST 2024
This commit is contained in:
53
createlinks
Normal file
53
createlinks
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/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");
|
||||
}
|
Reference in New Issue
Block a user