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
* Install openssh server
## Install (in SSH)
* Log in via SSH
## Install (client side)
* Log in via SSH (or open desktop terminal)
* 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
```
* Run setup script
```
cd code_server && ./setup.sh
curl https://git.cmtec.se/cm/code_server/-/raw/main/update_wrapper.sh?ref_type=heads | bash -s
```
* exit session
* Log in via SSH

View File

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