Commit 1b2fa356 authored by Franco Fichtner's avatar Franco Fichtner

proxy: fix startup on /var memory disk

parent cc57b6e3
#!/bin/sh
SQUID_DIRS="/var/log/squid /var/run/squid /var/squid /var/squid/cache /var/squid/logs"
for SQUID_DIR in ${SQUID_DIRS}; do
mkdir -p ${SQUID_DIR}
chown -R squid:squid ${SQUID_DIR}
chmod -R 750 ${SQUID_DIR}
done
/usr/local/sbin/squid -z
[start]
command:/usr/local/sbin/squid -z;/usr/local/etc/rc.d/squid start
command:/usr/local/opnsense/scripts/proxy/setup.sh;/usr/local/etc/rc.d/squid start
parameters:
type:script
message:starting proxy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment