From 4273d1a444892ef982c4b0ed16cab56124730e4a Mon Sep 17 00:00:00 2001
From: Arthur Jacquin <arthur.jacquin@student-cs.fr>
Date: Thu, 13 Oct 2022 18:58:06 +0200
Subject: [PATCH] fix: add sudo

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1cd1eb2..d2f1bb3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -48,4 +48,4 @@ deploy:
     - apt-get update
     - apt-get install -y openssh-client sshpass
     - sshpass -p viazero ssh -o StrictHostKeyChecking=no viazero@138.195.138.96
-      "cd /var/www/cicd && git config --global --add safe.directory /var/www/cicd && git checkout tp3 && git pull && systemctl daemon-reload && systemctl start calculator"
+      "cd /var/www/cicd && sudo git checkout tp3 && sudo git pull && sudo systemctl daemon-reload && sudo systemctl start calculator"
-- 
GitLab