Fix FOUND_USER command

This commit is contained in:
LordGrey 2023-11-18 21:57:18 +01:00
parent 721eef2806
commit 3c180455c0

View File

@ -47,7 +47,7 @@ if [ "$IS_UPGRADE" = false ]; then
then
# systemd
echo "---> init deamon: systemd"
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
FOUND_USR=$(who | grep -o -m1 '^\w*\b' || echo "root")
install_file /usr/share/hyperion/service/hyperion.systemd /etc/systemd/system/hyperion@.service
systemctl enable hyperion"@${FOUND_USR}".service
START_MSG="--> systemctl start hyperion for user ${FOUND_USR}"