set configpath again after creating optional non privileged user so variable is not left empty

This commit is contained in:
Roni Väyrynen
2021-12-06 13:55:40 +02:00
parent a8a960a9ed
commit 1a8405707b

View File

@@ -520,6 +520,7 @@ function InstallXO {
printprog "Creating missing $XOUSER user"
runcmd "useradd -s /sbin/nologin $XOUSER -m"
printok "Creating missing $XOUSER user"
CONFIGPATH=$(getent passwd "$XOUSER" | cut -d: -f6)
fi
if [[ "$USESUDO" == "true" ]]; then
InstallSudo