#!/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-manager-jsquery-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-manager-jsquery", qw( # files(s) to be backed up #)); #Other possible entries: #Server manager entry #panel_link("smeserver-manager-jsquery", 'manager'); #Events to smeserver-manager-jsquery #$event = 'smeserver-manager-jsquery-smeserver-manager-jsquery'; # safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/smeserver-manager-jsquery"); # templates2events("/etc/smeserver-manager-jsquery/smeserver-manager-jsquery.conf", $event); safe_symlink('/usr/share/javascript/buttons/buttons.html5.min.js','root/usr/share/smanager/themes/default/public/js/buttons.html5.min.js'); safe_symlink('/usr/share/javascript/buttons/buttons.print.min.js','root/usr/share/smanager/themes/default/public/js/buttons.print.min.js'); safe_symlink('/usr/share/javascript/dataTables.buttons.min.js','root/usr/share/smanager/themes/default/public/js/dataTables.buttons.min.js'); safe_symlink('/usr/share/javascript/datatables.min.css','root/usr/share/smanager/themes/default/public/js/datatables.min.css'); safe_symlink('/usr/share/javascript/datatables.min.js','root/usr/share/smanager/themes/default/public/js/datatables.min.js'); safe_symlink('/usr/share/javascript/jquery-ui/images','root/usr/share/smanager/themes/default/public/js/images'); safe_symlink('/usr/share/javascript/jquery/jquery.min.js','root/usr/share/smanager/themes/default/public/js/jquery.min.js'); safe_symlink('/usr/share/javascript/jquery/jquery.min.map','root/usr/share/smanager/themes/default/public/js/jquery.min.map'); safe_symlink('/usr/share/javascript/jquery-ui/jquery-ui.min.css','root/usr/share/smanager/themes/default/public/js/jquery-ui.min.css'); safe_symlink('/usr/share/javascript/jquery-ui/jquery-ui.min.js','root/usr/share/smanager/themes/default/public/js/jquery-ui.min.js'); safe_symlink('/usr/share/javascript/jszip/jszip.min.js','root/usr/share/smanager/themes/default/public/js/jszip.min.js'); safe_symlink('/usr/share/javascript/pdfmake/pdfmake.min.js','root/usr/share/smanager/themes/default/public/js/pdfmake.min.js'); #safe_symlink('/usr/share/javascript/sme-dataTable-setup.js','root/usr/share/smanager/themes/default/public/js/sme-DataTable-setup.js'); safe_symlink('/usr/share/javascript/pdfmake/vfs_fonts.js','root/usr/share/smanager/themes/default/public/js/vfs_fonts.js');