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

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

diff --git a/instance-scripts/cloud-init.yml b/instance-scripts/cloud-init.yml
index 2d44f44..faad95a 100644
--- a/instance-scripts/cloud-init.yml
+++ b/instance-scripts/cloud-init.yml
@@ -51,8 +51,7 @@ runcmd:
 #
 # Install Rust
 #
-  - "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
-  - "source \"$HOME/.cargo/env\""
+  - "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/scripts/rust.sh | bash"
 #
 # Install Docker
 #
diff --git a/instance-scripts/scripts/rust.sh b/instance-scripts/scripts/rust.sh
index a2adbf6..21df85f 100644
--- a/instance-scripts/scripts/rust.sh
+++ b/instance-scripts/scripts/rust.sh
@@ -5,4 +5,4 @@
 #
 
 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
-source \"$HOME/.cargo/env\"
\ No newline at end of file
+source "$HOME/.cargo/env"
\ No newline at end of file
-- 
GitLab