From 025b7be8f2aad06644556b6afffdb63e39ed67d1 Mon Sep 17 00:00:00 2001 From: Javan Rasokat <4342160+JavanXD@users.noreply.github.com> Date: Sun, 26 May 2024 09:12:11 +0200 Subject: [PATCH] fix service lighttpd force-reload" to enable changes --- stage-honeypi/01-install-honeypi/00-run.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stage-honeypi/01-install-honeypi/00-run.sh b/stage-honeypi/01-install-honeypi/00-run.sh index 6b28303..3c9bcd3 100755 --- a/stage-honeypi/01-install-honeypi/00-run.sh +++ b/stage-honeypi/01-install-honeypi/00-run.sh @@ -132,10 +132,8 @@ run_in_chroot " pip3 install Adafruit_DHT pip3 install Adafruit_Python_DHT pip3 install timezonefinder==6.1.8 numpy -lighttpd-enable-mod fastcgi fastcgi-php " - # Install configuration files echo 'Installing configuration files' install -m 755 files/wvdial.conf "${ROOTFS_DIR}/etc/wvdial.conf" @@ -249,6 +247,11 @@ chown -R www-data:www-data /var/www/html chmod -R 775 /var/www/html " +# Reload Lighttpd to apply changes +echo 'Reloading Lighttpd to apply changes' +run_in_chroot "service lighttpd force-reload || echo 'Lighttpd reload failed, continuing.'" + + # Set folder permissions echo 'Setting folder permissions for /home/pi' run_in_chroot "