mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-17 21:59:55 +00:00
Merge pull request #1768 from Al2Klimov/bugfix/install-invalid-user
basic-install.sh: fix "install: invalid user ''"
This commit is contained in:
commit
1a30043776
@ -58,6 +58,10 @@ IPV6_ADDRESS=""
|
|||||||
QUERY_LOGGING=true
|
QUERY_LOGGING=true
|
||||||
INSTALL_WEB_INTERFACE=true
|
INSTALL_WEB_INTERFACE=true
|
||||||
|
|
||||||
|
if [ -z "${USER}" ]; then
|
||||||
|
USER="$(id -un)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Find the rows and columns will default to 80x24 if it can not be detected
|
# Find the rows and columns will default to 80x24 if it can not be detected
|
||||||
screen_size=$(stty size 2>/dev/null || echo 24 80)
|
screen_size=$(stty size 2>/dev/null || echo 24 80)
|
||||||
|
Loading…
Reference in New Issue
Block a user