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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Nov 15 03:10:14 CET 2010


Revision: 11617
          http://gar.svn.sourceforge.net/gar/?rev=11617&view=rev
Author:   bdwalton
Date:     2010-11-15 02:10:14 +0000 (Mon, 15 Nov 2010)

Log Message:
-----------
apache2: ensure the conf file build CAS script indicates to user whether or not file is being touched

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-11-15 01:58:17 UTC (rev 11616)
+++ csw/mgar/pkg/apache2/trunk/files/build_cas_template	2010-11-15 02:10:14 UTC (rev 11617)
@@ -11,6 +11,7 @@
 
 if [ "\$1" = install ]; then
    if [ ! -f "\$CONF_FILE" ]; then
+      echo "Installing \$CONF_FILE from CSW template."
       cp -p \$CONF_FILE.CSW \$CONF_FILE
       perl -pi \
 	-e "s/#*ServerName.*www.example.com/ServerName \`hostname\`/;" \
@@ -23,6 +24,8 @@
 
       chown root:bin \$CONF_FILE
       chmod 644 \$CONF_FILE
+   else
+      echo "Not updating \$CONF_FILE.  It already exists."
    fi
 else
    # preserve ourselves with no changes


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