From fc1f4d636956b3a5a040e5122bf34c02abff9a14 Mon Sep 17 00:00:00 2001
From: Vitor Trovisco <vmt25@cam.ac.uk>
Date: Thu, 4 Aug 2022 11:16:05 +0000
Subject: [PATCH] Update weekly_routine.sh - a) restart function is simpler and
 allows easy edit for canto-test ; b) changed variable for canto-space
 location under new overarching canto-project directory

---
 weekly_routine.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/weekly_routine.sh b/weekly_routine.sh
index 710fa4f..954cfd4 100755
--- a/weekly_routine.sh
+++ b/weekly_routine.sh
@@ -77,8 +77,7 @@ function restart_canto()
 
     # Canto restart
     # Get Container ID from output
-    DOCKERNAME=$(docker ps -a --filter status=running | awk '$2 ~ /pombase\/canto-base/ { print $1 }')
-    if docker restart "${DOCKERNAME}"; then
+    if docker restart canto; then
         log "Canto restarted successfully"
     else
         log "Canto failed to restart sucessfully!"
-- 
GitLab