🔧 Aktualisiert: setup.sh zur Verwendung von echo anstelle von log für die Ausgabe von Modus-Erkennungsinformationen, um die Funktionalität vor der Initialisierung der Logging-Funktionen zu gewährleisten. 🚀
This commit is contained in:
@ -36,11 +36,12 @@ detect_script_location() {
|
|||||||
readonly SOURCE_BACKEND_DIR="$script_dir"
|
readonly SOURCE_BACKEND_DIR="$script_dir"
|
||||||
readonly PROJECT_ROOT_DIR="$(dirname "$script_dir")"
|
readonly PROJECT_ROOT_DIR="$(dirname "$script_dir")"
|
||||||
|
|
||||||
log "🔍 GIT-CLONE-MODUS ERKANNT"
|
# Verwende echo statt log (da log-Funktionen noch nicht definiert sind)
|
||||||
log " 📁 Skript-Verzeichnis: $CURRENT_DIR"
|
echo "🔍 GIT-CLONE-MODUS ERKANNT"
|
||||||
log " 📁 Backend-Quelle: $SOURCE_BACKEND_DIR"
|
echo " 📁 Skript-Verzeichnis: $CURRENT_DIR"
|
||||||
log " 📁 Projekt-Root: $PROJECT_ROOT_DIR"
|
echo " 📁 Backend-Quelle: $SOURCE_BACKEND_DIR"
|
||||||
log " 🎯 Ziel: $APP_DIR"
|
echo " 📁 Projekt-Root: $PROJECT_ROOT_DIR"
|
||||||
|
echo " 🎯 Ziel: $APP_DIR"
|
||||||
else
|
else
|
||||||
# Skript läuft bereits im Produktions-Verzeichnis
|
# Skript läuft bereits im Produktions-Verzeichnis
|
||||||
readonly GIT_CLONE_MODE=false
|
readonly GIT_CLONE_MODE=false
|
||||||
@ -48,12 +49,13 @@ detect_script_location() {
|
|||||||
readonly SOURCE_BACKEND_DIR="$script_dir"
|
readonly SOURCE_BACKEND_DIR="$script_dir"
|
||||||
readonly PROJECT_ROOT_DIR="$script_dir"
|
readonly PROJECT_ROOT_DIR="$script_dir"
|
||||||
|
|
||||||
log "🏠 PRODUKTIONS-MODUS ERKANNT"
|
# Verwende echo statt log (da log-Funktionen noch nicht definiert sind)
|
||||||
log " 📁 Produktions-Verzeichnis: $CURRENT_DIR"
|
echo "🏠 PRODUKTIONS-MODUS ERKANNT"
|
||||||
|
echo " 📁 Produktions-Verzeichnis: $CURRENT_DIR"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Führe Pfad-Erkennung aus
|
# Führe Pfad-Erkennung aus (early, bevor logging initialisiert wird)
|
||||||
detect_script_location
|
detect_script_location
|
||||||
|
|
||||||
# Automatische Installationsmodus-Erkennung
|
# Automatische Installationsmodus-Erkennung
|
||||||
|
Reference in New Issue
Block a user