workaround for root not having /awips2/python in LD_LIB...

This commit is contained in:
mjames-upc 2019-01-07 10:38:09 -07:00
parent 3eaeccf381
commit 251fa0fd70

View file

@ -395,7 +395,11 @@ edex_purge_reset() {
# Show Qpid data ingest queues
#
edex_qpid() {
/awips2/python/bin/qpid-stat -q -S msgIn
if [[ ${USER} = "root" ]]; then
su - awips -c "qpid-stat -q -S msgIn"
else
/awips2/python/bin/qpid-stat -q -S msgIn
fi
}
#