"feat: Add SSL certificate generation scripts for installation"

This commit is contained in:
2025-05-26 08:00:39 +02:00
parent bb10247c41
commit 49faea0a73
5 changed files with 324 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ fi
# Prüfen, ob die Einträge bereits existieren
FRONTEND_ENTRY=$(grep -c "m040tbaraspi001.de040.corpintra.net" ${HOSTS_FILE})
BACKEND_ENTRY=$(grep -c "raaspberry" ${HOSTS_FILE})
BACKEND_ENTRY=$(grep -c "raspberrypi" ${HOSTS_FILE})
# Einträge in die Hosts-Datei schreiben
echo -e "${BLUE}Aktualisiere Hosts-Datei...${RESET}"
@@ -53,7 +53,7 @@ fi
if [ $BACKEND_ENTRY -eq 0 ]; then
echo -e "\n# MYP Backend Host" >> ${HOSTS_FILE}
echo "${LOCAL_IP} raaspberry" >> ${HOSTS_FILE}
echo "${LOCAL_IP} raspberrypi" >> ${HOSTS_FILE}
echo -e "${GREEN}Backend-Hostname hinzugefügt${RESET}"
else
echo -e "${YELLOW}Backend-Hostname ist bereits konfiguriert${RESET}"
@@ -63,7 +63,7 @@ echo ""
echo -e "${GREEN}Konfiguration abgeschlossen!${RESET}"
echo -e "${BLUE}Folgende Hostnamen sind jetzt konfiguriert:${RESET}"
echo -e " - Frontend: ${YELLOW}m040tbaraspi001.de040.corpintra.net${RESET}"
echo -e " - Backend: ${YELLOW}raaspberry${RESET}"
echo -e " - Backend: ${YELLOW}raspberrypi${RESET}"
echo ""
echo -e "${BLUE}Sie können nun die Anwendung mit folgendem Befehl starten:${RESET}"
echo -e "${YELLOW}docker-compose up -d${RESET}"