components/squid/Makefile
changeset 4562 43ef811d0422
parent 4539 f2b9eb7f8e76
child 4690 384db5537828
--- a/components/squid/Makefile	Mon Jun 29 16:53:21 2015 -0700
+++ b/components/squid/Makefile	Mon Jun 29 17:16:32 2015 -0700
@@ -96,6 +96,13 @@
 
 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
 
+# Appends the following line to the end of the squid.conf configuration
+# file. This line is necessary for running squid for testing. 
+# This starts up squid as user webservd. 
+COMPONENT_POST_INSTALL_ACTION += \
+	(cd $(PROTO_DIR)/etc/squid ; \
+ 	echo '\ncache_effective_user webservd' >> squid.conf)
+
 ASLR_MODE = $(ASLR_ENABLE)
 
 # common targets