You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ch...@apache.org on 2013/01/24 19:11:52 UTC

svn commit: r1438112 - /uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_post_install

Author: challngr
Date: Thu Jan 24 18:11:51 2013
New Revision: 1438112

URL: http://svn.apache.org/viewvc?rev=1438112&view=rev
Log:
UIMA-2584
Set symlink to DUCCBOOK from webserver root.

Modified:
    uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_post_install

Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_post_install
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_post_install?rev=1438112&r1=1438111&r2=1438112&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_post_install (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_post_install Thu Jan 24 18:11:51 2013
@@ -216,11 +216,10 @@ class PostInstall(DuccUtil):
 
         print 'Python version:'
         print sys.version
-        print ''
 
         py_version = sys.version_info
         if ( (py_version[0] != 2) or (py_version[1] < 4) ):
-            self.fail("Python must be installed at level 2.4 or higher.")
+            self.fail("\nPython must be installed at level 2.4 or higher.")
 
         self.setup_ducc_head()
         self.check_nodes()
@@ -234,11 +233,15 @@ class PostInstall(DuccUtil):
             print 'WARNING: DUCC is only tested under Java 1.6'
         else:
             print 'Java is verified.'
-        print ''
 
         self.create_keystore(self.keytool)
-        print 'Web server keystore generated from ducc.properties'
-        print ''
+        print '\nWeb server keystore generated from ducc.properties'
+
+        ws_duccbook = self.DUCC_HOME + "/webserver/root/system.duccbook.html"
+        if ( not os.path.lexists(ws_duccbook) ):
+            duccbook = self.DUCC_HOME + "/docs/book.html"
+            os.symlink(duccbook, wsroot + "/system.duccbook.html")
+        print '\nDUCC book installed into webserver root\n'
 
         # Make duccling
         here = os.getcwd()
@@ -246,7 +249,8 @@ class PostInstall(DuccUtil):
         os.system("make clean all")
         os.chdir(here)
         shutil.copyfile("../duccling/src/ducc_ling", self.DUCC_HOME + "/admin/ducc_ling")
-        print 'Initial ducc_ling is installed.  See the installation guide for multi-user setup.'
+        os.chmod(self.DUCC_HOME + '/admin/ducc_ling', 0755)
+        print '\nInitial ducc_ling is installed.  See the installation guide for multi-user setup.'
 
         amqhome = self.ducc_properties.get('ducc.broker.home')
         os.chdir(amqhome + '/bin')