Add explicit exit calls to update_script functions (#8752)

This commit is contained in:
CanbiZ
2025-10-30 05:03:54 -07:00
committed by GitHub
parent 2d9d62118f
commit 5a92816946
31 changed files with 36 additions and 42 deletions

View File

@@ -32,7 +32,6 @@ function update_script() {
msg_info "Restarting AdGuard Home"
$STD rc-service adguardhome restart
msg_ok "Restarted AdGuard Home"
exit 0
}

View File

@@ -75,7 +75,6 @@ function update_script() {
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi
exit 0
}

View File

@@ -32,7 +32,7 @@ function update_script() {
msg_info "Restarting Caddy"
rc-service caddy restart
msg_ok "Restarted Caddy"
exit
exit 0
}
start

View File

@@ -41,6 +41,7 @@ function update_script() {
;;
esac
done
exit 0
}
start

View File

@@ -31,7 +31,6 @@ function update_script() {
msg_info "Restarting Forgejo"
$STD rc-service forgejo restart
msg_ok "Restarted Forgejo"
exit 0
}

View File

@@ -50,7 +50,7 @@ function update_script() {
else
msg_ok "No update required. Garage is already at ${GITEA_RELEASE}"
fi
exit
exit 0
}
start

View File

@@ -48,7 +48,6 @@ function update_script() {
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi
exit 0
}

View File

@@ -32,7 +32,7 @@ function update_script() {
msg_info "Restarting Gitea"
rc-service gitea restart
msg_ok "Restarted Gitea"
exit
exit 0
}
start

View File

@@ -54,6 +54,7 @@ function update_script() {
;;
esac
done
exit 0
}
start

View File

@@ -41,7 +41,6 @@ function update_script() {
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi
exit 0
}

View File

@@ -55,7 +55,7 @@ function update_script() {
$STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file /opt/komodo/compose.env pull
$STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d
msg_ok "Updated ${APP}"
exit
exit 0
}
start

View File

@@ -31,7 +31,6 @@ function update_script() {
msg_info "Restarting MariaDB"
$STD rc-service mariadb restart
msg_ok "Restarted MariaDB"
exit 0
}

View File

@@ -50,6 +50,7 @@ function update_script() {
;;
esac
done
exit 0
}
start

View File

@@ -31,7 +31,6 @@ function update_script() {
msg_info "Updating Node-RED"
$STD npm install -g --unsafe-perm node-red
msg_ok "Updated Node-RED"
exit 0
}

View File

@@ -31,7 +31,6 @@ function update_script() {
msg_info "Restarting PostgreSQL"
$STD rc-service postgresql restart
msg_ok "Restarted PostgreSQL"
exit 0
}

View File

@@ -31,7 +31,6 @@ function update_script() {
msg_info "Restarting Prometheus"
$STD rc-service prometheus restart
msg_ok "Restarted Prometheus"
exit 0
}

View File

@@ -38,7 +38,6 @@ function update_script() {
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi
exit 0
}

View File

@@ -41,9 +41,8 @@ function update_script() {
msg_info "Starting Service"
$STD rc-service redlib start
msg_ok "Started Service"
msg_ok "Update Successful"
exit
exit 0
}
start

View File

@@ -31,8 +31,7 @@ function update_script() {
msg_info "Restarting Syncthing"
$STD rc-service syncthing restart
msg_ok "Restarted Syncthing"
exit 1
exit 0
}
start

View File

@@ -44,7 +44,6 @@ function update_script() {
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi
exit 0
}

View File

@@ -28,7 +28,7 @@ function update_script() {
msg_info "Upgrading traefik from edge"
$STD apk add traefik --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
msg_ok "Upgraded traefik"
exit
exit 0
}
start

View File

@@ -31,8 +31,7 @@ function update_script() {
msg_info "Restarting Transmission"
$STD rc-service transmission-daemon restart
msg_ok "Restarted Transmission"
exit 1
exit 0
}
start

View File

@@ -36,7 +36,6 @@ function update_script() {
$STD ./wgd.sh start
msg_ok "WGDashboard updated"
fi
exit 0
}

View File

@@ -54,8 +54,9 @@ function update_script() {
msg_error "PLEASE MAKE A BACKUP FIRST!"
exit
fi
msg_ok "Updated Successfully"
msg_ok "Updated Successfully!"
fi
exit
}
start

View File

@@ -28,6 +28,7 @@ function update_script() {
exit
fi
msg_ok "${APP} updates itself automatically!"
exit
}
start

View File

@@ -62,7 +62,6 @@ function update_script() {
sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json
$STD /opt/cronicle/bin/control.sh start
msg_ok "Installed Cronicle Worker"
echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n"
exit
fi

View File

@@ -33,6 +33,7 @@ function update_script() {
chmod +x /opt/freshrss/cli/sensitive-log.sh
systemctl restart apache2
msg_ok "Fixed wrong permissions"
exit
else
msg_error "FreshRSS should be updated via the user interface."
exit

View File

@@ -31,6 +31,7 @@ function update_script() {
$STD apt update
$STD apt -y upgrade
msg_ok "Updated $APP LXC"
exit
}
start

View File

@@ -50,6 +50,7 @@ function update_script() {
else
msg_ok "$APP is already up to date (${RELEASE})"
fi
exit
}
start

View File

@@ -40,6 +40,7 @@ function update_script() {
msg_ok "Started Service"
msg_ok "Updated successfully!\n"
fi
exit
}
start

View File

@@ -40,6 +40,7 @@ function update_script() {
else
msg_ok "${APP} is already up to date (${RELEASE})"
fi
exit
}
start