Standardize update success messages in scripts (#8757)

This commit is contained in:
CanbiZ
2025-10-30 09:24:16 -07:00
committed by GitHub
parent e900367b51
commit be7d0704d7
357 changed files with 1296 additions and 1217 deletions
+4 -4
View File
@@ -31,9 +31,9 @@ function update_script() {
RELEASE=$(curl -s https://api.github.com/repos/slskd/slskd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
msg_info "Stopping $APP"
msg_info "Stopping Service"
systemctl stop slskd soularr.timer soularr.service
msg_ok "Stopped $APP"
msg_info "Stopped Service"
msg_info "Updating $APP to v${RELEASE}"
tmp_file=$(mktemp)
@@ -42,9 +42,9 @@ function update_script() {
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated $APP to v${RELEASE}"
msg_info "Starting $APP"
msg_info "Starting Service"
systemctl start slskd
msg_ok "Started $APP"
msg_ok "Started Service"
rm -rf $tmp_file
else
msg_ok "No ${APP} update required. ${APP} is already at v${RELEASE}"