mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-26 19:25:31 +02:00
commit
d8e3dbc796
|
@ -1,4 +1,4 @@
|
||||||
#!/command/with-contenv bash
|
#!/command/with-contenv bash
|
||||||
|
|
||||||
s6-echo "Stopping cron"
|
s6-echo "Stopping cron"
|
||||||
killall -9 cron
|
killall --signal 9 cron
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
s6-echo "Stopping lighttpd"
|
s6-echo "Stopping lighttpd"
|
||||||
service lighttpd-access-log stop
|
service lighttpd-access-log stop
|
||||||
service lighttpd-error-log stop
|
service lighttpd-error-log stop
|
||||||
killall -9 lighttpd
|
killall --signal 9 lighttpd
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/command/with-contenv bash
|
#!/command/with-contenv bash
|
||||||
|
|
||||||
s6-echo "Stopping pihole-FTL"
|
s6-echo "Stopping pihole-FTL"
|
||||||
killall -15 pihole-FTL
|
killall --signal 15 pihole-FTL
|
||||||
|
|
|
@ -10,17 +10,13 @@ WEB_LOCAL_REPO=/var/www/html/admin
|
||||||
setupVars=/etc/pihole/setupVars.conf
|
setupVars=/etc/pihole/setupVars.conf
|
||||||
|
|
||||||
detect_arch() {
|
detect_arch() {
|
||||||
DETECTED_ARCH=$(dpkg --print-architecture)
|
DETECTED_ARCH=$(arch)
|
||||||
S6_ARCH=$DETECTED_ARCH
|
S6_ARCH=$DETECTED_ARCH
|
||||||
case $DETECTED_ARCH in
|
case $DETECTED_ARCH in
|
||||||
amd64)
|
|
||||||
S6_ARCH="x86_64";;
|
|
||||||
armel)
|
armel)
|
||||||
S6_ARCH="armhf";;
|
S6_ARCH="armhf";;
|
||||||
armhf)
|
armv7l)
|
||||||
S6_ARCH="armhf";;
|
S6_ARCH="armhf";;
|
||||||
arm64)
|
|
||||||
S6_ARCH="aarch64";;
|
|
||||||
i386)
|
i386)
|
||||||
S6_ARCH="i686";;
|
S6_ARCH="i686";;
|
||||||
esac
|
esac
|
||||||
|
@ -94,9 +90,13 @@ mv /etc/pihole/macvendor.db /macvendor.db
|
||||||
|
|
||||||
|
|
||||||
## Remove the default lighttpd unconfigured config:
|
## Remove the default lighttpd unconfigured config:
|
||||||
rm /etc/lighttpd/conf-enabled/99-unconfigured.conf
|
if [ -f /etc/lighttpd/conf-enabled/99-unconfigured.conf ]; then
|
||||||
|
rm /etc/lighttpd/conf-enabled/99-unconfigured.conf
|
||||||
|
fi
|
||||||
## Remove the default lighttpd placeholder page for good measure
|
## Remove the default lighttpd placeholder page for good measure
|
||||||
rm /var/www/html/index.lighttpd.html
|
if [ -f /var/www/html/index.lighttpd.html ]; then
|
||||||
|
rm /var/www/html/index.lighttpd.html
|
||||||
|
fi
|
||||||
## Remove redundant directories created by the installer to reduce docker image size
|
## Remove redundant directories created by the installer to reduce docker image size
|
||||||
rm -rf /tmp/*
|
rm -rf /tmp/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user