diff --git a/instance-scripts/cloud-init.yml b/instance-scripts/cloud-init.yml
index 952e3fe22707b4b1b44b27e8b724661136353436..1290fa2bec35d8206179223e70ff652ba0c69865 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