From 7ecc1f037e167dc052e9d25984bb9704e5d57210 Mon Sep 17 00:00:00 2001 From: Javan Rasokat <4342160+JavanXD@users.noreply.github.com> Date: Sun, 26 May 2024 14:07:07 +0200 Subject: [PATCH] minor updates --- .github/workflows/release.yml | 2 +- stage-honeypi/01-install-honeypi/00-run.sh | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 613d513..d5be420 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: sudo chown -fR $(stat -c "%U:%G" .) ./deploy # delete previous releases - name: 🗑️ Delete previous releases - uses: dev-drprasad/delete-older-releases@v0.3.2 + uses: dev-drprasad/delete-older-releases@v0.3.4 with: keep_latest: 0 delete_tags: true diff --git a/stage-honeypi/01-install-honeypi/00-run.sh b/stage-honeypi/01-install-honeypi/00-run.sh index dea32ff..c37bb99 100755 --- a/stage-honeypi/01-install-honeypi/00-run.sh +++ b/stage-honeypi/01-install-honeypi/00-run.sh @@ -144,6 +144,12 @@ install -m 644 files/lighttpd.conf "${ROOTFS_DIR}/etc/lighttpd/lighttpd.conf" install -m 644 files/ntp.conf "${ROOTFS_DIR}/etc/ntpsec/ntp.conf" install -m 644 files/motd "${ROOTFS_DIR}/etc/motd" +# Enable Lighttpd modules and Reload Lighttpd to apply changes +echo 'Enabling Lighttpd modules' +run_in_chroot "lighttpd-enable-mod fastcgi fastcgi-php || echo 'lighttpd-enable-mod failed, continuing.'" +echo 'Reloading Lighttpd to apply changes' +run_in_chroot "service lighttpd force-reload || echo 'Lighttpd reload failed, continuing.'" + # Enable HoneyPi Service echo 'Enabling HoneyPi Service' install -m 644 files/honeypi.service "${ROOTFS_DIR}/lib/systemd/system/honeypi.service" @@ -248,14 +254,6 @@ chown -R www-data:www-data /var/www/html chmod -R 775 /var/www/html " -# Enable Lighttpd modules -echo 'Enabling Lighttpd modules' -run_in_chroot "lighttpd-enable-mod fastcgi fastcgi-php || echo 'lighttpd-enable-mod failed, continuing.'" - -# 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 "