[csw-devel] SF.net SVN: gar:[13089] csw/mgar/pkg/apache2/branches/open-bug-squash/files /CSWapache2.postinstall

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Jan 24 18:10:52 CET 2011


Revision: 13089
          http://gar.svn.sourceforge.net/gar/?rev=13089&view=rev
Author:   bdwalton
Date:     2011-01-24 17:10:52 +0000 (Mon, 24 Jan 2011)

Log Message:
-----------
apache2/branches/open-bug-squash/files: make postinstall script create var/run if it's not there

Modified Paths:
--------------
    csw/mgar/pkg/apache2/branches/open-bug-squash/files/CSWapache2.postinstall

Modified: csw/mgar/pkg/apache2/branches/open-bug-squash/files/CSWapache2.postinstall
===================================================================
--- csw/mgar/pkg/apache2/branches/open-bug-squash/files/CSWapache2.postinstall	2011-01-24 14:21:10 UTC (rev 13088)
+++ csw/mgar/pkg/apache2/branches/open-bug-squash/files/CSWapache2.postinstall	2011-01-24 17:10:52 UTC (rev 13089)
@@ -7,9 +7,9 @@
 AP2_LIBEXEC=$AP2_PREFIX/libexec
 AP2_CONFDIR=$AP2_PREFIX/etc
 AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_RUNDIR=$AP2_PREFIX/var/run
 
 
-
 UPGRADE_CONFIGS="\
     httpd.conf \
     ssl.conf \
@@ -93,4 +93,9 @@
 EOF
 fi
 
+if [ ! -d "$AP2_RUNDIR" ]; then
+    echo "Creating var/run..."
+    mkdir -p "$AP2_RUNDIR"
+fi
+
 exit 0


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