mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Disable current service, even if not active
This commit is contained in:
parent
31df065c0f
commit
dbcafd3081
@ -70,7 +70,7 @@ if [[ ! -z ${CURRENT_SERVICE} ]]; then
|
|||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
echo "Disable current service: ${CURRENT_SERVICE}"
|
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
|
fi
|
||||||
|
|
||||||
HYPERION="hyperion"
|
HYPERION="hyperion"
|
||||||
@ -84,9 +84,5 @@ NEW_SERVICE="${HYPERION}@${USERNAME}.service"
|
|||||||
echo "Restarting Hyperion Service: ${NEW_SERVICE}"
|
echo "Restarting Hyperion Service: ${NEW_SERVICE}"
|
||||||
systemctl enable --quiet ${NEW_SERVICE} --now >/dev/null 2>&1
|
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."
|
echo "Done."
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user