commit
d8e3dbc796
|
@ -1,4 +1,4 @@
|
|||
#!/command/with-contenv bash
|
||||
|
||||
s6-echo "Stopping cron"
|
||||
killall -9 cron
|
||||
killall --signal 9 cron
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
s6-echo "Stopping lighttpd"
|
||||
service lighttpd-access-log stop
|
||||
service lighttpd-error-log stop
|
||||
killall -9 lighttpd
|
||||
killall --signal 9 lighttpd
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/command/with-contenv bash
|
||||
|
||||
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
|
||||
|
||||
detect_arch() {
|
||||
DETECTED_ARCH=$(dpkg --print-architecture)
|
||||
DETECTED_ARCH=$(arch)
|
||||
S6_ARCH=$DETECTED_ARCH
|
||||
case $DETECTED_ARCH in
|
||||
amd64)
|
||||
S6_ARCH="x86_64";;
|
||||
armel)
|
||||
S6_ARCH="armhf";;
|
||||
armhf)
|
||||
armv7l)
|
||||
S6_ARCH="armhf";;
|
||||
arm64)
|
||||
S6_ARCH="aarch64";;
|
||||
i386)
|
||||
S6_ARCH="i686";;
|
||||
esac
|
||||
|
@ -94,9 +90,13 @@ mv /etc/pihole/macvendor.db /macvendor.db
|
|||
|
||||
|
||||
## 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
|
||||
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
|
||||
rm -rf /tmp/*
|
||||
|
||||
|
|
Loading…
Reference in New Issue