--- rpms/smeserver-vacation/contribs10/smeserver-vacation.spec 2020/06/12 05:52:10 1.4 +++ rpms/smeserver-vacation/contribs10/smeserver-vacation.spec 2020/10/26 10:00:28 1.5 @@ -1,10 +1,10 @@ -# $Id: smeserver-vacation.spec,v 1.3 2020/05/19 14:34:51 brianr Exp $ +# $Id: smeserver-vacation.spec,v 1.4 2020/06/12 05:52:10 brianr Exp $ # Authority: dungog # Name: Stephen Noble %define name smeserver-vacation %define version 1.1 -%define release 29 +%define release 30 Summary: SME Server enhancement to enable vacation messages for users. Name: %{name} Version: %{version} @@ -38,6 +38,7 @@ Patch21: smeserver-vacation-1.1-locale-2 Patch22: smeserver-vacation-1.1-SME10-Move-to-manager2.patch Patch23: smeserver-vacation-1.1-Better-display-dates-in-list.patch Patch24: smeserver-vacation-1.1-Update-for-Apache-Mod-Proxy-based-server2.patch +Patch25: smeserver-vacation-1.1-Add-in-update-action-to-restart-smanager.patch BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} @@ -53,6 +54,10 @@ Optionally provides a user-manager panel enable vacation for themselves and to modify their own message %changelog +* Sat Oct 24 2020 Brian Read 1.1-30.sme +- Update to make call to smanager and systemd dependant on smanager being installed and move from post in spec file [SME: 11052] +- to smeserver-vacation-update event + * Thu Jun 11 2020 Brian Read 1.1-29.sme - Update for Apache-Mod-Proxy mode Server2 [SME:10927] @@ -365,6 +370,7 @@ enable vacation for themselves and to mo %patch22 -p1 %patch23 -p1 %patch24 -p1 +%patch25 -p1 %build perl createlinks @@ -401,8 +407,14 @@ rm -rf $RPM_BUILD_ROOT if [ -d /etc/e-smith/events/conf-userpanel ] ; then /sbin/e-smith/signal-event conf-userpanel fi -/sbin/e-smith/signal-event manager2-refresh -systemctl restart smanager + +#if (systemctl list-unit-files |grep smanager) then +# echo "Smanager restart in spec file" +# /sbin/e-smith/signal-event manager2-refresh; +# systemctl restart smanager +#else +# echo "No smanager restart in spec file" +#fi %postun #uninstall