fix full path to /bin/ln in %post
This commit is contained in:
parent
12c26730ad
commit
4d68184d64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user