diff -urN smeserver-thinclient-2.2.old/createlinks smeserver-thinclient-2.2/createlinks --- smeserver-thinclient-2.2.old/createlinks 2022-06-30 09:38:20.915773538 +1000 +++ smeserver-thinclient-2.2/createlinks 2022-06-30 11:01:31.133590901 +1000 @@ -2,7 +2,25 @@ use esmith::Build::CreateLinks qw(:all); use File::Basename; +use File::Path; -my $panel = "manager"; +# our event specific for updating with yum without reboot +$event = 'smeserver-thinclient-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 -panel_link("thinclient", $panel); \ No newline at end of file +foreach my $file (qw( + /etc/dhcpd.thinclient +)) +{ + templates2events( $file, $event ); +} +#action needed in case we have a systemd unit +# event_link('systemd-default', $event, '10'); +# event_link('systemd-reload', $event, '50'); +#action specific to this package +#event_link('action', $event, '30'); +#services we need to restart +safe_symlink('restart',"root/etc/e-smith/events/$event/services2adjust/dhcpd"); +#and Server Manager panel link +panel_link("thinclient", "manager") diff -urN smeserver-thinclient-2.2.old/root/etc/e-smith/web/functions/thinclient smeserver-thinclient-2.2/root/etc/e-smith/web/functions/thinclient --- smeserver-thinclient-2.2.old/root/etc/e-smith/web/functions/thinclient 2022-06-30 09:38:20.911773606 +1000 +++ smeserver-thinclient-2.2/root/etc/e-smith/web/functions/thinclient 2022-06-30 09:39:38.531440918 +1000 @@ -1301,13 +1301,10 @@ } } - if ($action eq "Delete" || $macrec->prop('status') eq 'enabled') + if (system ("/sbin/e-smith/signal-event smeserver-thinclient-update > /var/log/thinclient.log 2>&1")) { - if (system ("/sbin/e-smith/signal-event smeserver-thinclient-update > /var/log/thinclient.log 2>&1")) - { - showWorkstationPanel($q, "Error occurred during thinclient-update event.", "/var/log/thinclient.log"); - return; - } + showWorkstationPanel($q, "Error occurred during thinclient-update event.", "/var/log/thinclient.log"); + return; } showInitial ($q, "success", "$action of Workstation [$mac], successfull", "");