Skip to content

Commit

Permalink
dietpi-patches: harden group removal
Browse files Browse the repository at this point in the history
Remove www-data user from pihole group as well, if it is not the first member.
  • Loading branch information
MichaIng committed Feb 25, 2025
1 parent 86fefc0 commit a7f85a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .update/patches
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ Patch_9_11()
[[ -d '/etc/nginx/sites-dietpi' ]] && G_EXEC rm -f /etc/nginx/sites-dietpi/dietpi-pihole*

# Remove www-data user from pihole group
getent group pihole | grep -Eq ':www-data(,|$)' && G_EXEC gpasswd -d www-data pihole
getent group pihole | grep -Eq '(:|,)www-data(,|$)' && G_EXEC gpasswd -d www-data pihole

# Change web UI port to 8089 to avoid conflict with webservers and other web applications
G_EXEC pihole-FTL --config webserver.port 8089
Expand Down

0 comments on commit a7f85a1

Please sign in to comment.