From 1a8405707b7f78fe6d7da6496cd05693ae854fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Mon, 6 Dec 2021 13:55:40 +0200 Subject: [PATCH] set configpath again after creating optional non privileged user so variable is not left empty --- xo-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/xo-install.sh b/xo-install.sh index 60aa6fc..d7c8c53 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -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