Updated install readme and updated wrapper
This commit is contained in:
parent
cd8bf42c30
commit
a4c95dbf9c
14
README.md
14
README.md
@ -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
|
||||||
|
|||||||
@ -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 &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user