Reword restart-status Docker socket message to avoid duplicating the container-picker message (v0.16.4)

This commit is contained in:
marvin
2026-09-18 16:43:39 -04:00
parent b8dca3e397
commit 157c680e58
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1590,7 +1590,7 @@ app.get("/api/system/storage", async (req, res, next) => {
// Inspects this container's own restart policy via the Docker Engine API, reusing the same
// mounted-socket + self-identification (process.env.HOSTNAME) pattern as the container picker.
async function ownRestartPolicy() {
if (!dockerSocketMounted) return { checked: false, policyName: null, restartAvailable: false, reason: "Docker socket not detected — mount /var/run/docker.sock to check the restart policy." };
if (!dockerSocketMounted) return { checked: false, policyName: null, restartAvailable: false, reason: "Restart availability cant be verified — mount /var/run/docker.sock into this container so Site Gateway can confirm it will come back up before offering a restart." };
const ownId = String(process.env.HOSTNAME || "").trim();
if (!ownId) return { checked: false, policyName: null, restartAvailable: false, reason: "Could not determine this container's own ID." };
try {