[xrdp] Use preset in trigger, no need for absolute paths.

bojan bojan at fedoraproject.org
Sun Dec 7 21:17:03 UTC 2014


commit 6fa52392b592b8bf50b69e7d3f351ab12756dd61
Author: Bojan Smojver <bojan at rexursive.com>
Date:   Mon Dec 8 08:16:48 2014 +1100

    Use preset in trigger, no need for absolute paths.

 xrdp.spec |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/xrdp.spec b/xrdp.spec
index 67439e8..a7c9aad 100644
--- a/xrdp.spec
+++ b/xrdp.spec
@@ -121,16 +121,16 @@ touch %{buildroot}%{_sysconfdir}/xrdp/rsakeys.ini
 %systemd_postun_with_restart xrdp.service 
 
 %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:
-/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
 /sbin/chkconfig --del xrdp >/dev/null 2>&1 || :
-if [ "`/bin/systemctl is-active xrdp.service`" = 'active' ]; then
-    /bin/systemctl stop xrdp.service >/dev/null 2>&1 || :
-    /bin/systemctl start xrdp.service >/dev/null 2>&1 || :
+if [ "`systemctl is-active xrdp.service`" = 'active' ]; then
+    systemctl stop xrdp.service >/dev/null 2>&1 || :
+    systemctl start xrdp.service >/dev/null 2>&1 || :
 fi
 
 


More information about the scm-commits mailing list