Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD committed May 26, 2024
1 parent f3a660d commit 7ecc1f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 6 additions & 8 deletions stage-honeypi/01-install-honeypi/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 "
Expand Down

0 comments on commit 7ecc1f0

Please sign in to comment.