From cc2bea7a79e867af9646ee1e8ff9d6efc99a7ec3 Mon Sep 17 00:00:00 2001
From: Nathan Rodet <nrodet@grandlyon.com>
Date: Fri, 23 Dec 2022 16:15:35 +0100
Subject: [PATCH] simplified name

---
 instance-scripts/cloud-init.yml | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/instance-scripts/cloud-init.yml b/instance-scripts/cloud-init.yml
index acbfdff..b8e69b3 100644
--- a/instance-scripts/cloud-init.yml
+++ b/instance-scripts/cloud-init.yml
@@ -69,16 +69,12 @@ runcmd:
 #
   - "docker run -d --name atrium --restart unless-stopped --net=host -v /root/atrium/atrium.yaml:/app/atrium.yaml -v /root/atrium/data/letsencrypt_cache:/app/letsencrypt_cache -v /root/atrium/data:/app/data nicolaspernoud/atrium:latest"
 #
-# Install Code Server
+# Install And Run Code Server
 #
-  - "curl -fsSL https://code-server.dev/install.sh | sh"
   - "mkdir -p  /root/.config/code-server/"
   - 'sed -i "s/%user_password%/$(scw-userdata user_password)/g" /root/config.yaml'
   - "mv /root/config.yaml /root/.config/code-server/config.yaml"
-#
-# Run Code Server
-#
-  - "systemctl enable --now code-server@$USER"
+  - "curl -fsSL https://code-server.dev/install.sh | sh && systemctl enable --now code-server@root.service"
 #
 # Run Webtop Container
 #
-- 
GitLab