fix the coolwsd.service being disabled after updates (#3125, #7606)

Signed-off-by: Navid Sassan <navid.sassan@linuxfabrik.ch>
Change-Id: I3bd50075f3f18251425527f5debf60bed26cc2d3
pull/8178/head
Navid Sassan 2024-02-02 11:18:19 +01:00 committed by Andras Timar
parent 4cb6344f26
commit f1415b6c3e
1 changed files with 7 additions and 3 deletions

View File

@ -134,11 +134,15 @@ if [ $COOLWSD_IS_ACTIVE == "1" ]; then systemctl start coolwsd; fi
%preun
systemctl --no-reload disable coolwsd.service > /dev/null 2>&1 || :
systemctl stop coolwsd.service > /dev/null 2>&1 || :
if [ $1 -eq 0 ]; then
systemctl --no-reload disable coolwsd.service > /dev/null 2>&1 || :
systemctl stop coolwsd.service > /dev/null 2>&1 || :
fi
%postun
systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -eq 0 ]; then
systemctl daemon-reload >/dev/null 2>&1 || :
fi
%changelog
* Mon Aug 03 2015 Mihai Varga