From 4d68184d6405301a7240986f3b3475136c871ee6 Mon Sep 17 00:00:00 2001 From: trevorb Date: Fri, 17 Jan 2025 14:50:25 +1100 Subject: [PATCH] fix full path to /bin/ln in %post --- daemontools-encore.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/daemontools-encore.spec b/daemontools-encore.spec index 65973ca..5d20ef7 100644 --- a/daemontools-encore.spec +++ b/daemontools-encore.spec @@ -1,7 +1,7 @@ Summary: A collection of tools for managing UNIX services Name: daemontools-encore Version: 1.10 -Release: 3-sme%{dist} +Release: 3.sme%{dist} License: Public domain Group: Utilities/System URL: http://untroubled.org/daemontools-encore/ @@ -79,14 +79,16 @@ fi %endif # symink executables to legacy SME directory for prog in envdir envuidgid fghack multilog pgrphack readproctitle setlock setuidgid softlimit supervise svc svok svscan svscanboot svstat ; do - ln -s /bin/$prog /usr/local/bin/$prog + /bin/ln -s /bin/$prog /usr/local/bin/$prog done %postun if [ "$1" -eq 0 ]; then %if %{rhel} >= 7 -systemctl stop daemontools -systemctl disable daemontools +if [ -e /usr/bin/systemctl ] ; then + systemctl stop daemontools + systemctl disable daemontools +fi %endif %if %{rhel} == 6 /sbin/initctl stop svscanboot