1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Merge pull request #1768 from Al2Klimov/bugfix/install-invalid-user

basic-install.sh: fix "install: invalid user ''"
This commit is contained in:
Mark Drobnak 2018-06-01 19:27:51 -04:00 committed by GitHub
commit 1a30043776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)