Skip to content
Snippets Groups Projects
Commit 23167471 authored by Nathan Rodet's avatar Nathan Rodet
Browse files

Changes to cloud-init config

parent 62379949
No related branches found
No related tags found
6 merge requests!6End of development,!5Develop,!4End of development,!3Develop,!2hot-fix: change readme.md,!1Develop
Pipeline #49067 passed
......@@ -10,6 +10,8 @@ packages:
- git
runcmd:
# Set environment variable
- "export USER_PASSWORD=$(scw-userdata=user_password)"
# Install Rust
- "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
- "source \"$HOME/.cargo/env\""
......@@ -21,7 +23,7 @@ runcmd:
# Install Code Server
- "curl -fsSL https://code-server.dev/install.sh | sh"
- "mkdir -p /root/.config/code-server/"
- "echo 'bind-addr: 0.0.0.0:8080\nauth: password\npassword: $(echo scw-userdata user_password)\ncert: false\n' > /root/.config/code-server/config.yaml"
- "echo 'bind-addr: 0.0.0.0:8080\nauth: password\npassword: ${USER_PASSWORD}\ncert: false\n' > /root/.config/code-server/config.yaml"
# Run Code Server
# - "systemctl enable --now code-server@$USER"
# Run Webtop Container
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment