Skip to content

Commit

Permalink
Do not do this when not required
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed Mar 6, 2025
1 parent 5a51fee commit 9886009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ if [ "$ENTWARE" == 1 ]; then
if command -v id >/dev/null 2>&1; then
ROOT_USER="$(id -nu 0 2> /dev/null)"

if [ "$ROOT_USER" != "root" ]; then
if [ "$ROOT_USER" != "root" ] && grep -Fq " root " /opt/etc/cron.d/pihole-updatelists; then
echo "Warning: Root user is not called root ($ROOT_USER) - correcting username in crontab..."

sed "s/ root / $ROOT_USER /g" -i /opt/etc/cron.d/pihole-updatelists
Expand Down

0 comments on commit 9886009

Please sign in to comment.