Hetzner/code-server/deploy.sh

8 lines
293 B
Bash
Raw Normal View History

2022-12-30 18:52:19 +01:00
#!/bin/bash
echo "Creating virtual enviroment ..."
2023-01-31 12:30:10 +01:00
python3 -m venv hetz_codeserver_venv
2022-12-30 18:52:19 +01:00
echo "Installing dependencies ..."
pip install -q hcloud
2023-01-31 12:30:10 +01:00
echo "Initiating code server deploy ..."
2022-12-30 18:52:19 +01:00
chmod +x a.py
python3 a.py $(cat ../token_file.txt) $(find ~ -name *.pub | tail -n 1 | xargs cat) "478874"