added support for Remoteadress, multiuser and other port selection

This commit is contained in:
Yannick Eßer 2023-06-12 08:37:45 +02:00
parent 49da1df840
commit 67a832062c
2 changed files with 15 additions and 5 deletions

View File

@ -4,7 +4,7 @@ Dies erzeugt ein neues GIT Repository auf ein Asustor NAS (Only GIT installed).
## Version
V 1.1
V 1.2
## Installation
@ -12,6 +12,12 @@ Dies erzeugt ein neues GIT Repository auf ein Asustor NAS (Only GIT installed).
## Changelog
### V 1.1 **(WIP)**
- `main.py`
- Added Remote Adresse zu ändern (Local & Public)
- Added Multiuser
- Added Port ändern
### V 1.1
- `README.md` erstellt
- `main.py` -> Tippfehler korrigiert

12
main.py
View File

@ -1,9 +1,13 @@
import subprocess
project_name = input("Geben Sie den Projektnamen ein: ")
hostname = "192.168.2.106"
username = "yannick"
port = "22" # Anpassen, falls ein anderer Port verwendet wird
username = input("Hallo, wie lautet ihr anmelde Namen? (achte auf Groß und Kleinschrift): ")
hostname = input(f"Super, {username}. Jetzt bräuchte ich noch die Remote-adresse: ")
port= "22"
port = input(f"Standartport {port} nutzen? (y/j/PORT-Nr) ")
if port.lower() in ["ja","j","y"]:
port= "22"
project_name = input("Perfekt, gibt mir bitte noch den Projektnamen: ")
# Befehle für die SSH-Verbindung
commands = [