You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2018/10/23 19:06:46 UTC
svn commit: r1844691 - /uima/uima-ducc/trunk/src/main/admin/ducc_post_install
Author: degenaro
Date: Tue Oct 23 19:06:45 2018
New Revision: 1844691
URL: http://svn.apache.org/viewvc?rev=1844691&view=rev
Log:
UIMA-5899 DUCC ducc_post_install should verify that required /usr/bin/nslookup exists
Modified:
uima/uima-ducc/trunk/src/main/admin/ducc_post_install
Modified: uima/uima-ducc/trunk/src/main/admin/ducc_post_install
URL: http://svn.apache.org/viewvc/uima/uima-ducc/trunk/src/main/admin/ducc_post_install?rev=1844691&r1=1844690&r2=1844691&view=diff
==============================================================================
--- uima/uima-ducc/trunk/src/main/admin/ducc_post_install (original)
+++ uima/uima-ducc/trunk/src/main/admin/ducc_post_install Tue Oct 23 19:06:45 2018
@@ -424,9 +424,15 @@ class PostInstall():
ret = False
return ret
-
+
+ def verify_prereqs(self):
+ fn = '/usr/bin/nslookup'
+ # will throw exception if not found
+ dir_stat = os.stat(fn)
+
def main(self, argv):
+ self.verify_prereqs()
self.DUCC_HOME = find_ducc_home()
self.localhost = find_localhost()
cwd = os.getcwd()