57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
|
#! /usr/bin/perl -w
|
||
|
|
||
|
# Need some thought on when the templates should be expanded and when the action should be called.
|
||
|
|
||
|
use esmith::Build::CreateLinks qw(:all);
|
||
|
# my $event = "rocketchat-update";
|
||
|
# rocketchat-update
|
||
|
|
||
|
foreach (qw(
|
||
|
/home/e-smith/files/docker/configs/docker-compose.yml
|
||
|
))
|
||
|
|
||
|
{
|
||
|
templates2events("$_", qw(
|
||
|
post-upgrade
|
||
|
console-save
|
||
|
bootstrap-console-save
|
||
|
remoteaccess-update
|
||
|
smeserver-rocketchat-update
|
||
|
));
|
||
|
}
|
||
|
|
||
|
## Runlevel init links.
|
||
|
|
||
|
#service_link_enhanced("mongodb", "S57", "7");
|
||
|
#service_link_enhanced("mongodb", "K03", "6");
|
||
|
|
||
|
## Runlevel init links.
|
||
|
#service_link_enhanced("rocketchat", "S99", "7");
|
||
|
#
|
||
|
## Must be an easier way....
|
||
|
#service_link_enhanced("rocketchat", "K01", "0");
|
||
|
#service_link_enhanced("rocketchat", "K01", "1");
|
||
|
#service_link_enhanced("rocketchat", "K01", "2");
|
||
|
#service_link_enhanced("rocketchat", "K01", "3");
|
||
|
#service_link_enhanced("rocketchat", "K01", "4");
|
||
|
#service_link_enhanced("rocketchat", "K01", "5");
|
||
|
#service_link_enhanced("rocketchat", "K01", "6");
|
||
|
|
||
|
|
||
|
# Set up generic logfile timestamp renaming/symlinking
|
||
|
|
||
|
#foreach (qw(
|
||
|
# /var/log/rocketchat.log
|
||
|
# ))
|
||
|
#{
|
||
|
# safe_touch "root/etc/e-smith/events/logrotate/logfiles2timestamp/$_";
|
||
|
#}
|
||
|
|
||
|
#--------------------------------------------------
|
||
|
# actions for logrotate event
|
||
|
#--------------------------------------------------
|
||
|
|
||
|
#$event = "logrotate";
|
||
|
|
||
|
#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ipsec");
|