[csw-devel] SF.net SVN: gar:[11797] csw/mgar/pkg/apache2/trunk/files/build_cas_template

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Dec 6 01:37:39 CET 2010


Revision: 11797
          http://gar.svn.sourceforge.net/gar/?rev=11797&view=rev
Author:   bdwalton
Date:     2010-12-06 00:37:38 +0000 (Mon, 06 Dec 2010)

Log Message:
-----------
apache2: handle migration of some var/ paths in existing configs

Modified Paths:
--------------
    csw/mgar/pkg/apache2/trunk/files/build_cas_template

Modified: csw/mgar/pkg/apache2/trunk/files/build_cas_template
===================================================================
--- csw/mgar/pkg/apache2/trunk/files/build_cas_template	2010-12-05 23:44:28 UTC (rev 11796)
+++ csw/mgar/pkg/apache2/trunk/files/build_cas_template	2010-12-06 00:37:38 UTC (rev 11797)
@@ -28,6 +28,13 @@
       perl -pi \
          -e "s#/opt/csw/apache2/etc/server.crt#/etc/opt/csw/apache2/server.crt#; s#/opt/csw/apache2/etc/server.key#/etc/opt/csw/apache2/server.key#" \$NEW_CONF_FILE
 
+      # update various uses of the var/ paths.
+      perl -pi \
+         -e "s#"/opt/csw/apache2/var/log/#/var/opt/csw/log/apache2/#" \ 
+         -e "s#\"/opt/csw/apache2/var/#\"/var/opt/csw/apache2/#" \
+         -e "s#\"var/log/#\"/var/opt/csw/log/apache2/#" \
+         \$NEW_CONF_FILE
+
       # ensure we use the config files from the new location 
       perl -pi \
          -e "s/etc\//\/etc\/opt\/csw\/apache2\//" \$NEW_CONF_FILE


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list