summaryrefslogtreecommitdiffstats
path: root/squid/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'squid/entrypoint.sh')
-rw-r--r--squid/entrypoint.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/squid/entrypoint.sh b/squid/entrypoint.sh
new file mode 100644
index 0000000..560d206
--- /dev/null
+++ b/squid/entrypoint.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Create cache FS
+if [ ! -e /var/spool/squid/00 ];then
+ squid -z || exit $?
+fi
+/usr/sbin/squid -NYC -f /etc/squid/squid.conf || exit $?