Merge pull request #1352 from yubiuser/tweaks

Tweak commands
This commit is contained in:
Adam Warner 2023-05-28 12:31:55 +01:00 committed by GitHub
commit d8e3dbc796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#!/command/with-contenv bash
s6-echo "Stopping cron"
killall -9 cron
killall --signal 9 cron

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/command/with-contenv bash
s6-echo "Stopping pihole-FTL"
killall -15 pihole-FTL
killall --signal 15 pihole-FTL

View File

@ -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/*