Skip to content

Commit

Permalink
fix service lighttpd force-reload" to enable changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD committed May 26, 2024
1 parent bc2505e commit 025b7be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stage-honeypi/01-install-honeypi/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 "
Expand Down

0 comments on commit 025b7be

Please sign in to comment.