A few post-install updates that can be the defaults.

-qpidNoify.py - change the default server to always be "localhost"
-checkFileTime.pl - change the call to the qpidNotify.py script to "sudo su - awips -c" otherwise environment variables won't be correct when running the script via cron
This commit is contained in:
ucar-tmeyer 2023-01-26 19:53:19 +00:00
parent 9312958cf1
commit a75d4a1af3
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ class EdexQpidIngest:
if server == 'ev':
server = 'cpv1'
# Make connection to QPID
self.qpidIngest = qpidingest.IngestViaQPID(host=server, port=5672, program="qpidNotify")
self.qpidIngest = qpidingest.IngestViaQPID(host="localhost", port=5672, program="qpidNotify")
def sendToIngest(self, args):
size = len(args)

View file

@ -28,7 +28,7 @@ foreach $path(@paths)
`$syscmd`;
# $syscmd=" /awips2/python/bin/python /awips2/ldm/dev/notifyAWIPS2-unidata.py $outPath/$file";
$syscmd=" /awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify/qpidNotify.py $outPath/$file";
$syscmd="sudo su - awips -c \"/awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify/qpidNotify.py $outPath/$file\"";
print "\t$syscmd\n";
`$syscmd`;