mirror of
https://github.com/casjaysdevdocker/squidguard
synced 2025-01-18 12:34:24 -05:00
🗃️ modified: bin/entrypoint-squid.sh 🗃️
This commit is contained in:
parent
17463673f2
commit
8518f6d794
@ -16,14 +16,11 @@ export HOSTNAME="${HOSTNAME:-$(hostname -f)}"
|
|||||||
__init() {
|
__init() {
|
||||||
mkdir -p "/config" "/data"
|
mkdir -p "/config" "/data"
|
||||||
|
|
||||||
for dir in apache2 e2guardian squid squidguard; do
|
for dir in apache2 e2guardian squid c-icap; do
|
||||||
if [ -f "/usr/local/share/squidFiles/$dir" ]; then
|
if [ -f "/usr/local/share/squidFiles/$dir" ]; then
|
||||||
cp -Rf "/usr/local/share/squidFiles/$dir" "/config/$dir"
|
[ -f "/config/$dir" ] || cp -Rf "/usr/local/share/squidFiles/$dir" "/config/$dir"
|
||||||
elif [ -d "/usr/local/share/squidFiles/$dir" ]; then
|
elif [ -d "/usr/local/share/squidFiles/$dir" ]; then
|
||||||
cp -Rf "/usr/local/share/squidFiles/$dir/." "/config/$dir/"
|
[ -d "/config/$dir" ] || cp -Rf "/usr/local/share/squidFiles/$dir/." "/config/$dir/"
|
||||||
else
|
|
||||||
cp -Rf "/usr/local/share/squidFiles/data/." "/data/"
|
|
||||||
cp -Rf "/usr/local/share/squidFiles/config/." "/config/"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user