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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Nov 15 03:39:30 CET 2010


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

Log Message:
-----------
apache2: enchance and extend user messages for the build CAS tempalted files

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 02:27:45 UTC (rev 11620)
+++ csw/mgar/pkg/apache2/trunk/files/build_cas_template	2010-11-15 02:39:29 UTC (rev 11621)
@@ -11,7 +11,7 @@
 
 if [ "\$1" = install ]; then
    if [ ! -f "\$CONF_FILE" ]; then
-      echo "Installing \$CONF_FILE from CSW template." >&2
+      echo "Installing $1 from CSW template." >&2
       cp -p \$CONF_FILE.CSW \$CONF_FILE
       perl -pi \
 	-e "s/#*ServerName.*www.example.com/ServerName \`hostname\`/;" \
@@ -25,13 +25,14 @@
       chown root:bin \$CONF_FILE
       chmod 644 \$CONF_FILE
    else
-      echo "Not updating \$CONF_FILE.  It already exists." >&2
+      echo "Not updating $1.  It already exists." >&2
       if [ -n "\`grep mod_auth.so \$CONF_FILE\`" ]; then
          echo "Updating the syntax to 2.2 format though..."
          \${PIR}/\$AP2_DIR/sbin/update20to22 \$CONF_FILE >&2
       fi
    fi
 else
+   echo "Not removing $1." >&2
    # preserve ourselves with no changes
    cat \$CONF_FILE
 fi


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