From c9ce56cbbea93694e4ecd9def10d25d30668a90e Mon Sep 17 00:00:00 2001 From: Joachim Hummel Date: Mon, 1 Dec 2025 08:11:30 +0000 Subject: [PATCH] Replace docker-compose with docker compose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use modern docker compose command instead of deprecated docker-compose 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- change-mqtt-admin-password.sh | 4 ++-- lib/mosquitto-sync.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/change-mqtt-admin-password.sh b/change-mqtt-admin-password.sh index 1757e5a..3b66340 100755 --- a/change-mqtt-admin-password.sh +++ b/change-mqtt-admin-password.sh @@ -56,7 +56,7 @@ echo # Step 2: Restart containers echo -e "${YELLOW}Step 2: Restarting containers...${NC}" -docker-compose restart +docker compose restart echo -e "${GREEN}✓ Containers restarted${NC}" echo @@ -70,7 +70,7 @@ echo echo -e "${YELLOW}Step 4: MQTT configuration sync${NC}" echo -e "${YELLOW}Note: Automatic sync requires admin authentication.${NC}" echo -e "${YELLOW}Please log into the Admin Panel and click 'Sync MQTT Config' to apply the new password.${NC}" -echo -e "${YELLOW}Alternatively, restart Mosquitto: docker-compose restart mosquitto${NC}" +echo -e "${YELLOW}Alternatively, restart Mosquitto: docker compose restart mosquitto${NC}" echo echo -e "${GREEN}========================================${NC}" diff --git a/lib/mosquitto-sync.ts b/lib/mosquitto-sync.ts index cb5acfc..e4f4785 100644 --- a/lib/mosquitto-sync.ts +++ b/lib/mosquitto-sync.ts @@ -172,7 +172,7 @@ async function reloadMosquitto(): Promise { return true; } catch (error) { console.log('⚠ Could not reload Mosquitto automatically (requires docker socket permissions)'); - console.log('→ Changes saved to config files - restart Mosquitto to apply: docker-compose restart mosquitto'); + console.log('→ Changes saved to config files - restart Mosquitto to apply: docker compose restart mosquitto'); // Werfe keinen Fehler - Config-Dateien sind aktualisiert, werden beim nächsten Restart geladen return false; }