The build script for the traffic router currently embeds a sudo command in the RPM scriptlet that runs for the preinstall event. The sudo command should not be needed as the rpm package manager is already running within elevated privileges. Additionally, the RPM fails to install in containers/environments that do not have sudo installed.
``` $ rpm --scripts -qp ./traffic_router-3.0.0-9232.8247f2da.el7.x86_64.rpm $ preinstall scriptlet (using /bin/sh): # # # set +e chkconfig --list tomcat >/dev/null if [ $? -eq 0 ]; then /sbin/service tomcat stop else /usr/bin/sudo /usr/bin/systemctl list-unit-files traffic_router.service > /dev/null [ $? -eq 0 ] && /usr/bin/sudo /usr/bin/systemctl stop traffic_router fi ``` [ Full content available at: https://github.com/apache/trafficcontrol/issues/2758 ] This message was relayed via gitbox.apache.org for [email protected]
