From ac085fabd067fb1fda75ff733aaa9b004d55783f Mon Sep 17 00:00:00 2001 From: Dominik Siebel Date: Tue, 3 Dec 2024 22:28:04 +0100 Subject: [PATCH] address remaining review comments --- ct/silverbullet.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ct/silverbullet.sh b/ct/silverbullet.sh index 3e294b38..6eaa0157 100644 --- a/ct/silverbullet.sh +++ b/ct/silverbullet.sh @@ -69,17 +69,11 @@ function update_script() { mv silverbullet /opt/silverbullet/bin/ chmod +x /opt/silverbullet/bin/silverbullet echo "${RELEASE}" >/opt/silverbullet/${APP}_version.txt - msg_ok "Updated ${APP}" + msg_ok "Updated ${APP} to v${RELEASE}" msg_info "Starting ${APP}" systemctl start silverbullet - sleep 1 - if systemctl status silverbullet &>/dev/null ; then - msg_ok "Started ${APP}" - msg_ok "Updated ${APP} to v${RELEASE}" - else - msg_error "Failed to start ${APP}" - fi + msg_ok "Started ${APP}" else msg_ok "No update required. ${APP} is already at ${RELEASE}" fi