Updated install readme and updated wrapper

This commit is contained in:
Christoffer Martinsson 2024-10-13 12:11:40 +02:00
parent cd8bf42c30
commit a4c95dbf9c
2 changed files with 10 additions and 9 deletions

View File

@ -14,19 +14,15 @@ Configure new VM with following resources:
* Minimal installation * Minimal installation
* Install openssh server * Install openssh server
## Install (in SSH) ## Install (client side)
* Log in via SSH * Log in via SSH (or open desktop terminal)
* Install git * Install git
``` ```
sudo apt update && sudo apt -y install git sudo apt update && sudo apt -y install curl git
``` ```
* Clone this repo * Install code_server
``` ```
cd ~ && git clone https://git.cmtec.se/cm/code_server.git curl https://git.cmtec.se/cm/code_server/-/raw/main/update_wrapper.sh?ref_type=heads | bash -s
```
* Run setup script
```
cd code_server && ./setup.sh
``` ```
* exit session * exit session
* Log in via SSH * Log in via SSH

View File

@ -4,6 +4,11 @@ if [ $EUID != 0 ]; then
sudo "$0" "$@" sudo "$0" "$@"
fi fi
if [ ! -d ~/code_server ]; then
cd ~ &&
git clone https://git.cmtec.se/cm/code_server.git
fi
if [ -d ~/code_server ]; then if [ -d ~/code_server ]; then
cd ~/code_server && cd ~/code_server &&
git pull && git pull &&