Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/s6/debian-root/etc/s6-overlay/s6-rc.d/cron/finish
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/command/with-contenv bash

s6-echo "Stopping cron"
killall -9 cron
killall --signal 9 cron
2 changes: 1 addition & 1 deletion src/s6/debian-root/etc/s6-overlay/s6-rc.d/lighttpd/finish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/command/with-contenv bash

s6-echo "Stopping pihole-FTL"
killall -15 pihole-FTL
killall --signal 15 pihole-FTL
16 changes: 8 additions & 8 deletions src/s6/debian-root/usr/local/bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/*

Expand Down