Update_ood_portal in ondemand-1.6.19-1.el7.x86_64 refuses to make new configuration

update_ood_portal refuses to install new configuration if the existing /opt/rh/httpd24/root/etc/httpd/conf.d/ood-portal.conf MATCHES /etc/ood/config/ood_portal.sha256sum. I think this is a bug caused by a syntax error in update_ood_portal that is masked by a redirect of stderr to /dev/null. Suggested fix
< if [ sha256sum --quiet --status --check $SUM 1>/dev/null 2>&1 ] || [ ! -f "$APACHE" ]; then
> if sha256sum --quiet --status --check $SUM 1>/dev/null 2>&1 || [ ! -f "$APACHE" ]; then
(square brackets and commands with arguments don’t play nice)
workaround is to use “update_ood_portal -f”

1 Like

Thanks Ric, you’re right. I get [: too many arguments. I’m submitting the patch now.

@azric we just released a new patch 1.6.20. Would you try yum update ondemand to see if this addresses your problem?

Installed and working as expected!