From 571ac395e1f663d21b52bcb7380700fc91908ef3 Mon Sep 17 00:00:00 2001
From: Nathan Rodet <nrodet@grandlyon.com>
Date: Fri, 13 Jan 2023 10:43:35 +0100
Subject: [PATCH] Added scripts configuration

---
 instance-scripts/cloud-init.yml    | 3 +--
 instance-scripts/scripts/docker.sh | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/instance-scripts/cloud-init.yml b/instance-scripts/cloud-init.yml
index ee740a5..8b37368 100644
--- a/instance-scripts/cloud-init.yml
+++ b/instance-scripts/cloud-init.yml
@@ -52,8 +52,7 @@ runcmd:
 #
 # Install Docker
 #
-  - "curl -fsSL https://get.docker.com -o get-docker.sh"
-  - "sh get-docker.sh"
+  - "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/scripts/docker.sh | bash"
 #
 # Install Atrium
 #
diff --git a/instance-scripts/scripts/docker.sh b/instance-scripts/scripts/docker.sh
index 8a3fb37..979223e 100644
--- a/instance-scripts/scripts/docker.sh
+++ b/instance-scripts/scripts/docker.sh
@@ -5,4 +5,5 @@
 #
 
 curl -fsSL https://get.docker.com -o get-docker.sh
-sh get-docker.sh
\ No newline at end of file
+sh get-docker.sh
+rm get-docker.sh
-- 
GitLab