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

basic-install.sh: fix "install: invalid user ''"

refs #1767
This commit is contained in:
Alexander A. Klimov 2018-06-01 10:20:40 +02:00
parent fbee18e24d
commit 3be1904653

View File

@ -57,6 +57,10 @@ IPV6_ADDRESS=""
QUERY_LOGGING=true QUERY_LOGGING=true
INSTALL_WEB=true INSTALL_WEB=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)