Use preset in trigger, no need for absolute paths.
This commit is contained in:
parent
05d4ed8bd8
commit
6fa52392b5
10
xrdp.spec
10
xrdp.spec
@ -121,16 +121,16 @@ touch %{buildroot}%{_sysconfdir}/xrdp/rsakeys.ini
|
|||||||
%systemd_postun_with_restart xrdp.service
|
%systemd_postun_with_restart xrdp.service
|
||||||
|
|
||||||
%triggerun -- xrdp < 0.6.0-1
|
%triggerun -- xrdp < 0.6.0-1
|
||||||
/usr/bin/systemd-sysv-convert --save xrdp >/dev/null 2>&1 ||:
|
systemd-sysv-convert --save xrdp >/dev/null 2>&1 ||:
|
||||||
|
|
||||||
# If the package is allowed to autostart:
|
# If the package is allowed to autostart:
|
||||||
/bin/systemctl --no-reload enable xrdp.service >/dev/null 2>&1 ||:
|
systemctl preset xrdp.service >/dev/null 2>&1 ||:
|
||||||
|
|
||||||
# Run these because the SysV package being removed won't do them
|
# Run these because the SysV package being removed won't do them
|
||||||
/sbin/chkconfig --del xrdp >/dev/null 2>&1 || :
|
/sbin/chkconfig --del xrdp >/dev/null 2>&1 || :
|
||||||
if [ "`/bin/systemctl is-active xrdp.service`" = 'active' ]; then
|
if [ "`systemctl is-active xrdp.service`" = 'active' ]; then
|
||||||
/bin/systemctl stop xrdp.service >/dev/null 2>&1 || :
|
systemctl stop xrdp.service >/dev/null 2>&1 || :
|
||||||
/bin/systemctl start xrdp.service >/dev/null 2>&1 || :
|
systemctl start xrdp.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user