From 0bb7dfbb7d181c3d5639a1e942f5fc1eb0ddf9bf Mon Sep 17 00:00:00 2001 From: s478839 Date: Sat, 21 Jan 2023 20:18:24 +0100 Subject: [PATCH] edit 4.3 --- lab4/clean.py | 2 +- lab4/webservice-init.py | 2 +- readme.md | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lab4/clean.py b/lab4/clean.py index 312132c..9bfc317 100644 --- a/lab4/clean.py +++ b/lab4/clean.py @@ -1,6 +1,6 @@ from hcloud import Client -with open("token.txt", "r") as file: +with open("../token.txt", "r") as file: api_token = file.read().strip() client = Client(token=api_token) diff --git a/lab4/webservice-init.py b/lab4/webservice-init.py index 530def6..0cf0617 100644 --- a/lab4/webservice-init.py +++ b/lab4/webservice-init.py @@ -10,7 +10,7 @@ from pathlib import Path with open(f'{str(Path.home())}/.ssh/id_ed25519.pub', 'r') as file: ssh_pub = file.readline() -with open("token.txt", "r") as file: +with open("../token.txt", "r") as file: api_token = file.read().strip() client = Client(token=api_token) diff --git a/readme.md b/readme.md index 8e2471e..d23824b 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ ## Zadanie 2 ### Wymagania -Po sklonowaniu repozytorium do folderu dpzc-hetzner należy wstawić plik ```token.txt``` zawierający token dostępowy do Hetznera. +Po sklonowaniu repozytorium do folderu *dpzc-hetzner* należy wstawić plik ```token.txt``` zawierający token dostępowy do Hetznera. Należy się również upewnić, że w folderze ```~/.ssh/ ``` znajduje się klucz publiczny ```id_ed25519.pub ``` ### Uruchomienie @@ -35,6 +35,10 @@ python3 clean.py ## Zadanie 1 i 3 (4.1 i 4.3) +### Wymagania +Po sklonowaniu repozytorium do folderu *dpzc-hetzner* należy wstawić plik ```token.txt``` zawierający token dostępowy do Hetznera. +Należy się również upewnić, że w folderze ```~/.ssh/ ``` znajduje się klucz publiczny ```id_ed25519.pub ``` + ### Uruchomienie ```bash git clone git@git.wmi.amu.edu.pl:s478839/dpzc-hetzner.git