summaryrefslogtreecommitdiffstats
path: root/squid/entrypoint.sh
diff options
context:
space:
mode:
authorTyler Baker <forcedinductionz@gmail.com>2017-10-27 21:59:34 -0700
committerGitHub <noreply@github.com>2017-10-27 21:59:34 -0700
commit736fc3248108069d9f7d98fadc436aad3732dfab (patch)
tree01c4310dd22d3ef9a3a19c719de07aecb0015778 /squid/entrypoint.sh
parentceb64a544ae771e2e1d1a41e46a59c6f0a9de060 (diff)
parent09e2ea04485476093b97277cf4bf445052f4ba1b (diff)
Merge pull request #10 from montjoie/misc
Misc
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 $?