🗃️ modified: bin/entrypoint-squid.sh 🗃️

This commit is contained in:
Jason 2022-02-17 15:34:54 -05:00
parent 17463673f2
commit 8518f6d794
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -16,14 +16,11 @@ export HOSTNAME="${HOSTNAME:-$(hostname -f)}"
__init() {
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
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
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/"
[ -d "/config/$dir" ] || cp -Rf "/usr/local/share/squidFiles/$dir/." "/config/$dir/"
fi
done