mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +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
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ IPV6_ADDRESS=""
|
|||
QUERY_LOGGING=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
|
||||
screen_size=$(stty size 2>/dev/null || echo 24 80)
|
||||
|
|
Loading…
Reference in a new issue