From 3c180455c0b0ce5f06bb4cb59e5d64f9dfe39ac3 Mon Sep 17 00:00:00 2001 From: LordGrey <48840279+Lord-Grey@users.noreply.github.com> Date: Sat, 18 Nov 2023 21:57:18 +0100 Subject: [PATCH] Fix FOUND_USER command --- cmake/package-scripts/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/package-scripts/postinst b/cmake/package-scripts/postinst index 54cd3901..f5aba661 100644 --- a/cmake/package-scripts/postinst +++ b/cmake/package-scripts/postinst @@ -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}"