Bug 824788

Summary: enable script should export /usr/sbin PATH too
Product: [Fedora] Fedora Reporter: Jan Kaluža <jkaluza>
Component: scl-utilsAssignee: Jindrich Novy <jnovy>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: jnovy, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-06 20:03:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Kaluža 2012-05-24 09:27:27 UTC
httpd has various tools in /opt/rh/httpd24/root/usr/sbin, but this path is not added into PATH variable by /opt/rh/httpd24/enable script.

Comment 1 Jindrich Novy 2012-08-07 08:49:00 UTC
I think this could be achieved by adding this to your enable scriptlet:

cat >> %{buildroot}%{_scl_scripts}/enable << EOF
export PATH=%{_sbindir}:\$PATH
EOF

Does it fix your issue?

Comment 2 Jan Kaluža 2012-09-07 04:57:29 UTC
Sorry, I forgot to respond here. It really fixes the issue. I thought that file should be generated automatically and I should not write anything there. Thank you for your help.