initial commit of file from CVS for smeserver-shellinabox on Sat Sep 7 16:41:40 AEST 2024
This commit is contained in:
93
createlinks
Normal file
93
createlinks
Normal file
@@ -0,0 +1,93 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use esmith::Build::CreateLinks qw(:all);
|
||||
|
||||
####################
|
||||
# links to add
|
||||
panel_link( "shellinabox", "manager" );
|
||||
|
||||
## Old code
|
||||
## templates to expand
|
||||
#
|
||||
#foreach $event (
|
||||
# qw (
|
||||
# bootstrap-console-save
|
||||
# console-save
|
||||
# smeserver-shellinabox-update
|
||||
# )
|
||||
#) {
|
||||
# templates2events( "/etc/sysconfig/shellinaboxd", $event );
|
||||
# templates2events(
|
||||
# "/usr/lib/systemd/system/shellinabox.service.d/50koozali.conf",
|
||||
# $event );
|
||||
#}
|
||||
#
|
||||
## services to launch on event
|
||||
#
|
||||
## actions to do
|
||||
#
|
||||
#for my $event (qw( smeserver-shellinabox-update console-save ))
|
||||
#
|
||||
#{
|
||||
# event_link( "shellinabox-action", "$event", "20" );
|
||||
#}
|
||||
|
||||
# links for rc.d from init.d
|
||||
#service_link_enhanced( "shellinaboxd", "S99", "7" );
|
||||
|
||||
my $event = 'smeserver-shellinabox-update';
|
||||
|
||||
event_actions(
|
||||
$event, qw(
|
||||
systemd-default 88
|
||||
systemd-reload 89
|
||||
)
|
||||
);
|
||||
|
||||
event_templates(
|
||||
$event, qw(
|
||||
/etc/httpd/conf/httpd.conf
|
||||
/etc/sysconfig/shellinaboxd
|
||||
/usr/lib/systemd/system/shellinaboxd.service.d/50koozali.conf
|
||||
)
|
||||
);
|
||||
|
||||
event_services(
|
||||
$event, qw(
|
||||
httpd-e-smith reload
|
||||
shellinaboxd restart
|
||||
)
|
||||
);
|
||||
|
||||
# Other events
|
||||
foreach $event (
|
||||
qw(
|
||||
remoteaccess-update
|
||||
console-save
|
||||
)
|
||||
) {
|
||||
event_templates(
|
||||
$event, qw(
|
||||
/etc/sysconfig/shellinaboxd
|
||||
/usr/lib/systemd/system/shellinaboxd.service.d/50koozali.conf
|
||||
)
|
||||
);
|
||||
event_services(
|
||||
$event, qw(
|
||||
shellinaboxd restart
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
foreach $event (
|
||||
qw(
|
||||
bootstrap-console-save
|
||||
)
|
||||
) {
|
||||
event_templates(
|
||||
$event, qw(
|
||||
/etc/sysconfig/shellinaboxd
|
||||
/usr/lib/systemd/system/shellinaboxd.service.d/50koozali.conf
|
||||
)
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user