"feat: Add SSL certificate generation scripts for installation"
This commit is contained in:
@@ -29,7 +29,7 @@ Write-Host "Hosts-Datei: $hostsFile" -ForegroundColor Cyan
|
||||
|
||||
# Prüfen, ob die Einträge bereits existieren
|
||||
$frontendEntry = Select-String -Path $hostsFile -Pattern "m040tbaraspi001.de040.corpintra.net" -Quiet
|
||||
$backendEntry = Select-String -Path $hostsFile -Pattern "raaspberry" -Quiet
|
||||
$backendEntry = Select-String -Path $hostsFile -Pattern "raspberrypi" -Quiet
|
||||
|
||||
# Einträge in die Hosts-Datei schreiben
|
||||
Write-Host "Aktualisiere Hosts-Datei..." -ForegroundColor Blue
|
||||
@@ -48,7 +48,7 @@ if (-not $frontendEntry) {
|
||||
if (-not $backendEntry) {
|
||||
$hostsContent += ""
|
||||
$hostsContent += "# MYP Backend Host"
|
||||
$hostsContent += "$localIP raaspberry"
|
||||
$hostsContent += "$localIP raspberrypi"
|
||||
Write-Host "Backend-Hostname hinzugefügt" -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host "Backend-Hostname ist bereits konfiguriert" -ForegroundColor Yellow
|
||||
@@ -66,7 +66,7 @@ try {
|
||||
|
||||
Write-Host "Folgende Hostnamen sind jetzt konfiguriert:" -ForegroundColor Blue
|
||||
Write-Host " - Frontend: m040tbaraspi001.de040.corpintra.net" -ForegroundColor Yellow
|
||||
Write-Host " - Backend: raaspberry" -ForegroundColor Yellow
|
||||
Write-Host " - Backend: raspberrypi" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host "Sie können nun die Anwendung mit folgendem Befehl starten:" -ForegroundColor Blue
|
||||
Write-Host "docker-compose up -d" -ForegroundColor Yellow
|
||||
|
||||
Reference in New Issue
Block a user