generated from smedev/Template-for-SMEServer-Contribs-Package
Initial release [SME: 12853]
This commit is contained in:
64
createlinks
64
createlinks
@@ -1,43 +1,33 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use esmith::Build::CreateLinks qw(:all);
|
||||
use esmith::Build::Backup qw(:all);
|
||||
|
||||
# our event specific for updating with yum without reboot
|
||||
$event = 'smeserver-pfhandle-update';
|
||||
#add here the path to your templates needed to expand
|
||||
#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
|
||||
|
||||
# Maybe need ths in here as well:
|
||||
# /etc/dar/DailyBackup.dcf - if backup requested
|
||||
|
||||
foreach my $file (qw(
|
||||
/etc/systemd/system-preset/49-koozali.preset
|
||||
))
|
||||
{
|
||||
templates2events( $file, $event );
|
||||
};
|
||||
#action needed in case we have a systemd unit
|
||||
event_link('systemd-default', $event, '10');
|
||||
event_link('systemd-reload', $event, '50');
|
||||
|
||||
#services we might need to restart
|
||||
#event_services($event, 'xxxx' => 'restart', 'yyyy' => 'restart');
|
||||
|
||||
#Backup contrib files
|
||||
# backup_includes("smeserver-pfhandle", qw(
|
||||
# files(s) to be backed up
|
||||
#));
|
||||
|
||||
#Other possible entries:
|
||||
#Server manager entry
|
||||
#panel_link("smeserver-pfhandle", 'manager');
|
||||
#Events to smeserver-pfhandle
|
||||
#$event = 'smeserver-pfhandle-smeserver-pfhandle';
|
||||
# safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/smeserver-pfhandle");
|
||||
# templates2events("/etc/smeserver-pfhandle/smeserver-pfhandle.conf", $event);
|
||||
# This script creates the symlinks needed by this RPM
|
||||
# Specific support exists to create symlinks within e-smith web "panels"
|
||||
# and for links from named "events" directories into the "actions" directory
|
||||
use esmith::Build::CreateLinks qw(:all);
|
||||
|
||||
|
||||
#--------------------------------------------------
|
||||
# functions for manager panel
|
||||
#--------------------------------------------------
|
||||
my $panel = "manager";
|
||||
|
||||
panel_link("qmh", $panel);
|
||||
|
||||
#--------------------------------------------------
|
||||
# actions for console-save event:
|
||||
#--------------------------------------------------
|
||||
|
||||
#--------------------------------------------------
|
||||
# actions for smeserver-pfhandle-update event:
|
||||
#--------------------------------------------------
|
||||
|
||||
my $event = 'smeserver-pfhandle-update';
|
||||
|
||||
safe_symlink('restart', "root/etc/e-smith/events/$event/services2adjust/smanager");
|
||||
|
||||
event_link('navigation2-conf', "$event", '80');
|
||||
event_link('routes2-conf', "$event", '80');
|
||||
event_link('locales2-conf', "$event", '80');
|
||||
|
||||
#--------------------------------------------------
|
||||
# The End
|
||||
#--------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user