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)