[lsc-changes] r318 - lsc-sample/branches/v1.1/src/install

jclarke at lsc-project.org jclarke at lsc-project.org
Mon Jul 27 12:02:52 CEST 2009


Author: jclarke
Date: 2009-07-27 12:02:52 +0200 (Mon, 27 Jul 2009)
New Revision: 318

Modified:
   lsc-sample/branches/v1.1/src/install/make-lsc-archive.sh
Log:
Update install script for 1.1.0 layout

Modified: lsc-sample/branches/v1.1/src/install/make-lsc-archive.sh
===================================================================
--- lsc-sample/branches/v1.1/src/install/make-lsc-archive.sh	2009-07-27 08:53:22 UTC (rev 317)
+++ lsc-sample/branches/v1.1/src/install/make-lsc-archive.sh	2009-07-27 10:02:52 UTC (rev 318)
@@ -4,6 +4,7 @@
 # Script for LDAP Synchronization Connector
 #
 # Create an archive for LSC distribution/installation
+# Edit this script to set up configuration items.
 # This script must be run from lsc-sample root:
 #   $ src/install/make-lsc-archive.sh
 #
@@ -28,6 +29,10 @@
 #====================================================================
 # Changelog
 #====================================================================
+# Version 0.4 (07/2009)
+# - Update for new layout of configuration in LSC 1.1.0
+# Author: Jonathan Clarke (jonathan at phillipoux.net)
+#
 # Version 0.3 (03/2009)
 # - Create "sedi" function compliant with GNU sed
 # - Use Maven dependency plugin
@@ -112,7 +117,7 @@
 
 # Create lsc-sample package and copy it in LIBDIR
 echo "-- Package"
-mvn -Dmaven.test.skip=true package > /dev/null
+mvn package > /dev/null
 cp -a target/*.jar $LIBDIR > /dev/null
 
 # Get jar dependencies (with maven dependency plugin) and copy them in LIBDIR
@@ -121,7 +126,7 @@
 
 # Copy configuration
 echo "-- Configuration"
-cp -a src/test/resources/*.properties $CFGDIR > /dev/null
+cp -ar etc/* $CFGDIR > /dev/null
 
 # Copy run scripts
 echo "-- Scripts"
@@ -129,10 +134,6 @@
 cp -a src/install/check_lsc.sh $BINDIR/check_lsc.sh > /dev/null
 cp -a src/install/lsc.cron $CFGDIR/cron.d/$CRONFILENAME > /dev/null
 cp -a src/install/lsc.logrotate $CFGDIR/logrotate.d/$LOGROTATEFILENAME > /dev/null
-chmod 755 $BINDIR/$SCRIPTFILENAME > /dev/null                                     
-chmod 755 $BINDIR/check_lsc.sh > /dev/null                                        
-chmod 644 $CFGDIR/cron.d/$CRONFILENAME > /dev/null                                
-chmod 644 $CFGDIR/logrotate.d/$LOGROTATEFILENAME > /dev/null                      
 
 echo "-- Resources"
 for i in src/main/resources/*; do
@@ -156,6 +157,13 @@
 # Update log4j.properties
 sedi "s|^log4j.appender.LSC.File=.*|log4j.appender.LSC.File=$LOGFILE|" $CFGDIR/log4j.properties
 
+echo "-- Set permissions"
+# Set permissions
+chmod 755 $BINDIR/$SCRIPTFILENAME > /dev/null                                     
+chmod 755 $BINDIR/check_lsc.sh > /dev/null                                        
+chmod 644 $CFGDIR/cron.d/$CRONFILENAME > /dev/null                                
+chmod 644 $CFGDIR/logrotate.d/$LOGROTATEFILENAME > /dev/null                      
+
 # Make tar.gz
 echo "-- Create archive"
 cd $TGTDIR



More information about the lsc-changes mailing list