Skip to content

Commit

Permalink
Merge pull request #1072 from OSC/scl-package
Browse files Browse the repository at this point in the history
No longer add rh-ruby SCL to httpd24 enabled SCLs
  • Loading branch information
ericfranz authored Apr 23, 2021
2 parents f1988f7 + 03a232a commit 0d84729
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packaging/ondemand.spec
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ EOF
EOS

%post
if [ "$1" -eq 2 ]; then
%if %{with scl_apache}
%__sed -i 's/^HTTPD24_HTTPD_SCLS_ENABLED=.*/HTTPD24_HTTPD_SCLS_ENABLED="httpd24 %{?scl_ondemand_ruby}"/' \
%__sed -i 's/^HTTPD24_HTTPD_SCLS_ENABLED=.*/HTTPD24_HTTPD_SCLS_ENABLED="httpd24"/' \
/opt/rh/httpd24/service-environment
%endif
fi

/bin/systemctl daemon-reload &>/dev/null || :

Expand Down Expand Up @@ -256,11 +258,6 @@ restorecon -R %{_localstatedir}/log/ondemand-nginx
restorecon -R %{_localstatedir}/www/ood

%preun
if [ "$1" -eq 0 ]; then
%if %{with scl_apache}
%__sed -i 's/^HTTPD24_HTTPD_SCLS_ENABLED=.*/HTTPD24_HTTPD_SCLS_ENABLED="httpd24"/' \
/opt/rh/httpd24/service-environment
%endif
/opt/ood/nginx_stage/sbin/nginx_stage nginx_clean --force &>/dev/null || :
fi

Expand Down

0 comments on commit 0d84729

Please sign in to comment.