Bug 824788 - enable script should export /usr/sbin PATH too
Summary: enable script should export /usr/sbin PATH too
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: scl-utils
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-24 09:27 UTC by Jan Kaluža
Modified: 2013-07-02 23:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-06 20:03:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.