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:
parent
9312958cf1
commit
a75d4a1af3
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ class EdexQpidIngest:
|
||||||
if server == 'ev':
|
if server == 'ev':
|
||||||
server = 'cpv1'
|
server = 'cpv1'
|
||||||
# Make connection to QPID
|
# 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):
|
def sendToIngest(self, args):
|
||||||
size = len(args)
|
size = len(args)
|
||||||
|
|
|
@ -28,7 +28,7 @@ foreach $path(@paths)
|
||||||
`$syscmd`;
|
`$syscmd`;
|
||||||
|
|
||||||
# $syscmd=" /awips2/python/bin/python /awips2/ldm/dev/notifyAWIPS2-unidata.py $outPath/$file";
|
# $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";
|
print "\t$syscmd\n";
|
||||||
`$syscmd`;
|
`$syscmd`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue