[csw-devel] SF.net SVN: gar:[4675] csw/mgar/pkg/squid/trunk/files/CSWsquid.postinstall

valholla at users.sourceforge.net valholla at users.sourceforge.net
Tue May 5 00:17:13 CEST 2009


Revision: 4675
          http://gar.svn.sourceforge.net/gar/?rev=4675&view=rev
Author:   valholla
Date:     2009-05-04 22:17:13 +0000 (Mon, 04 May 2009)

Log Message:
-----------
postinstall script changes

Modified Paths:
--------------
    csw/mgar/pkg/squid/trunk/files/CSWsquid.postinstall

Modified: csw/mgar/pkg/squid/trunk/files/CSWsquid.postinstall
===================================================================
--- csw/mgar/pkg/squid/trunk/files/CSWsquid.postinstall	2009-05-04 21:32:32 UTC (rev 4674)
+++ csw/mgar/pkg/squid/trunk/files/CSWsquid.postinstall	2009-05-04 22:17:13 UTC (rev 4675)
@@ -6,7 +6,10 @@
 export PATH
 CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
 SQUID_CONFDIR=${CSW_PREFIX}/etc
+SQUID_VARDIR=${CSW_PREFIX}/var
+SQUID_SBINDIR=${CSW_PREFIX}/sbin
 
+
 if [ -f ${SQUID_CONFDIR}/squid.conf ]; then
     echo 'squid.conf found, Preserving Existing Config!'
 else
@@ -14,4 +17,10 @@
     chmod 0644 ${SQUID_CONFDIR}/squid.conf
 fi
 
+if [ -d ${SQUID_VARDIR}/cache ]; then
+    chown nobody:nobody ${SQUID_VARDIR}/cache
+fi
+
+${SQUID_SBINDIR}/squid -z
+
 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