From fa5f137c334ab9e733524bf9d19ecfa862f1c428 Mon Sep 17 00:00:00 2001 From: Nathan Rodet <nrodet@grandlyon.com> Date: Thu, 5 Jan 2023 11:10:32 +0100 Subject: [PATCH] change to code server conf --- instance-scripts/cloud-init.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/instance-scripts/cloud-init.yml b/instance-scripts/cloud-init.yml index 952e3fe..1290fa2 100644 --- a/instance-scripts/cloud-init.yml +++ b/instance-scripts/cloud-init.yml @@ -71,6 +71,8 @@ runcmd: # # Install And Run Code Server # + - "export HOME=/root" + - "export USER=root" - "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" @@ -84,4 +86,4 @@ runcmd: # # Install Repository # - - "git clone https://github.com/NathanRodet/rust-axum-demo" \ No newline at end of file + - "git clone https://github.com/NathanRodet/rust-axum-demo /root/rust-axum-demo" \ No newline at end of file -- GitLab