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
|
Summary: A collection of tools for managing UNIX services
|
||||||
Name: daemontools-encore
|
Name: daemontools-encore
|
||||||
Version: 1.10
|
Version: 1.10
|
||||||
Release: 3-sme%{dist}
|
Release: 3.sme%{dist}
|
||||||
License: Public domain
|
License: Public domain
|
||||||
Group: Utilities/System
|
Group: Utilities/System
|
||||||
URL: http://untroubled.org/daemontools-encore/
|
URL: http://untroubled.org/daemontools-encore/
|
||||||
@ -79,14 +79,16 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
# symink executables to legacy SME directory
|
# 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
|
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
|
done
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" -eq 0 ]; then
|
if [ "$1" -eq 0 ]; then
|
||||||
%if %{rhel} >= 7
|
%if %{rhel} >= 7
|
||||||
|
if [ -e /usr/bin/systemctl ] ; then
|
||||||
systemctl stop daemontools
|
systemctl stop daemontools
|
||||||
systemctl disable daemontools
|
systemctl disable daemontools
|
||||||
|
fi
|
||||||
%endif
|
%endif
|
||||||
%if %{rhel} == 6
|
%if %{rhel} == 6
|
||||||
/sbin/initctl stop svscanboot
|
/sbin/initctl stop svscanboot
|
||||||
|
Loading…
Reference in New Issue
Block a user