mirror of
https://github.com/pi-hole/pi-hole
synced 2025-07-27 17:38:09 +00:00
create_pihole_user update @diginc.
This commit is contained in:
parent
d71b799e75
commit
e42b6dcc8e
@ -756,7 +756,7 @@ runGravity() {
|
|||||||
create_pihole_user(){
|
create_pihole_user(){
|
||||||
# Check if user pihole exists and create if not
|
# Check if user pihole exists and create if not
|
||||||
echo "::: Checking if user 'pihole' exists..."
|
echo "::: Checking if user 'pihole' exists..."
|
||||||
id -u pihole &> /dev/null && echo "::: User 'pihole' already exists" || echo "::: User 'pihole' doesn't exist. Creating..." && useradd -r -s /usr/sbin/nologin pihole
|
id -u pihole &> /dev/null && echo "::: User 'pihole' already exists" || (echo "::: User 'pihole' doesn't exist. Creating..." && useradd -r -s /usr/sbin/nologin pihole)
|
||||||
}
|
}
|
||||||
|
|
||||||
configureFirewall() {
|
configureFirewall() {
|
||||||
|
Loading…
Reference in New Issue
Block a user