From 15e8858ead766c842660e854284a2ef9fa8e4aa1 Mon Sep 17 00:00:00 2001 From: liecno Date: Sat, 4 Jan 2025 11:52:40 +0100 Subject: [PATCH] Reorder code structure for ps5-mqtt script --- ct/ps5-mqtt.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/ps5-mqtt.sh b/ct/ps5-mqtt.sh index 2dfe955f..568d8a4d 100644 --- a/ct/ps5-mqtt.sh +++ b/ct/ps5-mqtt.sh @@ -25,6 +25,10 @@ color catch_errors function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -d /opt/ps5-mqtt ]]; then msg_error "No ${APP} installation found!" exit @@ -32,10 +36,6 @@ function update_script() { RELEASE=$(curl -s https://api.github.com/repos/FunkeyFlo/ps5-mqtt/releases/latest | jq -r '.tag_name') - header_info - check_container_storage - check_container_resources - if [[ "${RELEASE}" != "$(cat /opt/ps5-mqtt_version.txt)" ]]; then msg_info "Stopping service" systemctl stop ps5-mqtt.service