From 37da14904198ec1c220877ca1851cffbdbe31773 Mon Sep 17 00:00:00 2001
From: Nathan Rodet <nrodet@grandlyon.com>
Date: Fri, 13 Jan 2023 16:20:03 +0100
Subject: [PATCH] Added ttyd service

---
 instance-scripts/scripts/ttyd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/instance-scripts/scripts/ttyd.sh b/instance-scripts/scripts/ttyd.sh
index cbe1607..45b88f5 100644
--- a/instance-scripts/scripts/ttyd.sh
+++ b/instance-scripts/scripts/ttyd.sh
@@ -8,6 +8,6 @@ mkdir -p /root/ttyd
 curl https://github.com/tsl0922/ttyd/releases/download/1.7.2/ttyd.x86_64 -o root/ttyd/ttyd.x86_64
 chmod +x /root/ttyd/ttyd.x86_64
 curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/ttyd.service -o etc/systemd/system/ttyd.service
-sed -i "s|%user_password%|$(scw-userdata atrium_count_index)|g" /etc/systemd/system/ttyd.service
+sed -i "s|%user_password%|$(scw-userdata user_password)|g" /etc/systemd/system/ttyd.service
 
 systemctl enable ttyd.service && systemctl start ttyd.service
\ No newline at end of file
-- 
GitLab