Skip to content
Snippets Groups Projects
code-server.sh 470 B
Newer Older
  • Learn to ignore specific revisions
  • #!/bin/bash
    
    #
    # Install Code Server
    #
    
    mkdir -p  /root/.config/code-server/
    
    Nathan Rodet's avatar
    Nathan Rodet committed
    curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/config.yaml -o root/.config/code-server/config.yaml
    sed -i "s/%user_password%/$(scw-userdata user_password)/g" /root/.config/code-server/config.yaml
    
    curl -fsSL https://code-server.dev/install.sh | sh
    
    #
    # Run Code Server
    #
    
    sudo systemctl enable --now code-server@$USER