From ac5cabd29490ea686ca435184f4c0361a444c330 Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Fri, 29 Nov 2024 09:54:32 +0000 Subject: [PATCH] Shutdown docker-compose berfore OTA update Signed-off-by: Ivan Kuznetsov --- modules/fmo-dci-service/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/fmo-dci-service/default.nix b/modules/fmo-dci-service/default.nix index 531dc0f..73e9d45 100644 --- a/modules/fmo-dci-service/default.nix +++ b/modules/fmo-dci-service/default.nix @@ -69,6 +69,9 @@ in { # Backup the original file if it exists if [ -e "$DCPATH" ]; then + echo "Stop docker-compose" + ${pkgs.docker-compose}/bin/docker-compose -f $DCPATH down + echo "Backing up the original file" mv "$DCPATH" "$BCPPATH" else