From dbcafd30819cd1e078f09e8786b57b3f2b188028 Mon Sep 17 00:00:00 2001 From: LordGrey <48840279+Lord-Grey@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:21:18 +0100 Subject: [PATCH] Disable current service, even if not active --- bin/scripts/updateHyperionUser.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/scripts/updateHyperionUser.sh b/bin/scripts/updateHyperionUser.sh index 92f5af52..87ef732e 100755 --- a/bin/scripts/updateHyperionUser.sh +++ b/bin/scripts/updateHyperionUser.sh @@ -70,7 +70,7 @@ if [[ ! -z ${CURRENT_SERVICE} ]]; then exit 0; fi echo "Disable current service: ${CURRENT_SERVICE}" - systemctl is-active --quiet ${CURRENT_SERVICE} && systemctl disable --quiet ${CURRENT_SERVICE} --now >/dev/null 2>&1 + systemctl disable --quiet ${CURRENT_SERVICE} --now >/dev/null 2>&1 fi HYPERION="hyperion" @@ -84,9 +84,5 @@ NEW_SERVICE="${HYPERION}@${USERNAME}.service" echo "Restarting Hyperion Service: ${NEW_SERVICE}" systemctl enable --quiet ${NEW_SERVICE} --now >/dev/null 2>&1 -# Update HyperBian splash screen -sed -i "s/${CURRENT_SERVICE}/${NEW_SERVICE}/" /etc/update-motd.d/10-hyperbian >/dev/null 2>&1 - echo "Done." exit 0 -