Skip to content

Commit

Permalink
Update init.d script
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed May 14, 2024
1 parent 28ede7c commit f3597f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions files/opt/etc/init.d/S55pihole-FTL
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ if [ -f /opt/bin/id ]; then
TARGET_USER=""
PREARGS="su -s sh -c"
ARGS="pihole"
else
echo "Warning: Setting capabilities is not supported on this system"
fi
fi

[ -n "$TARGET_USER" ] && logger "Warning: Starting pihole-FTL as $USER (then dropping privileges to $TARGET_USER) because setting capabilities is not supported on this system"
else
logger "Warning: Starting pihole-FTL as $TARGET_USER because 'pihole' user does not exist"
fi

[ -n "$TARGET_USER" ] && ARGS="-- -u $TARGET_USER"
Expand Down

0 comments on commit f3597f7

Please sign in to comment.