From 251fa0fd70055ae9e485ee1433d0f4619b405fd8 Mon Sep 17 00:00:00 2001 From: mjames-upc Date: Mon, 7 Jan 2019 10:38:09 -0700 Subject: [PATCH] workaround for root not having /awips2/python in LD_LIB... --- rpms/awips2.upc/Installer.awips/programs/edex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpms/awips2.upc/Installer.awips/programs/edex b/rpms/awips2.upc/Installer.awips/programs/edex index bed4a9621d..cb28286538 100755 --- a/rpms/awips2.upc/Installer.awips/programs/edex +++ b/rpms/awips2.upc/Installer.awips/programs/edex @@ -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 } #