mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Update upd_pihole_dote.sh
This commit is contained in:
parent
4f63e014f4
commit
066d07f052
@ -1,23 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
curl -sSLo "${tmpdir}/dote" https://github.com/chrisstaite/DoTe/releases/latest/download/dote_arm64
|
||||
|
||||
cat > "${tmpdir}/Dockerfile" <<EOF
|
||||
FROM pihole/pihole:latest
|
||||
ENV DOTE_OPTS="-s 127.0.0.1:5053"
|
||||
COPY dote /opt/dote
|
||||
RUN chmod +x /opt/dote && echo -e "#!/bin/sh\n/opt/dote \\\$DOTE_OPTS -d\n" > /etc/cont-init.d/10-dote.sh
|
||||
EOF
|
||||
|
||||
podman pull pihole/pihole:latest
|
||||
podman build -t pihole:latest --format docker -f "${tmpdir}/Dockerfile" "${tmpdir}"
|
||||
rm -rf "${tmpdir}"
|
||||
|
||||
set +e
|
||||
|
||||
podman stop pihole
|
||||
podman rm pihole
|
||||
podman run -d --network dns --restart always \
|
||||
@ -33,4 +15,4 @@ podman run -d --network dns --restart always \
|
||||
-e PIHOLE_DNS_="127.0.0.1#5053" \
|
||||
-e ServerIP="10.0.5.3" \
|
||||
-e IPv6="False" \
|
||||
pihole:latest
|
||||
boostchicken/pihole-dote:latest
|
||||
|
Loading…
Reference in New Issue
Block a user