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; }