fix(defaults): restore SCRIPT_AUTHOR and validate_config; remove debug-force

This commit is contained in:
Mărcziem ™
2025-10-03 11:31:08 +02:00
parent 0fd250a5b3
commit 1a67acaafc

View File

@@ -5,15 +5,7 @@
# Script metadata # Script metadata
SCRIPT_VERSION="2.1.1" SCRIPT_VERSION="2.1.1"
SCRIPT_NAME="NAS Setup Script" SCRIPT_NAME="NAS Setup Script"
SCRIPT_AUTH # Validate Docker dependencies SCRIPT_AUTHOR="Sebastian Palencsár"
if [[ "${INSTALL_DOCKER:-false}" != "true" ]]; then
if [[ "${INSTALL_VAULTWARDEN:-false}" == "true" ]] || [[ "${INSTALL_JELLYFIN:-false}" == "true" ]] || [[ "${INSTALL_PORTAINER:-false}" == "true" ]]; then
log_warning "Docker-abhängige Services sind aktiviert, aber Docker ist deaktiviert. Erzwinge neue Konfiguration."
return 1 # Force create_interactive_config
fi
fi
return $errors Palencsár"
# Directories and files # Directories and files
LOG_FILE="/var/log/nas_setup.log" LOG_FILE="/var/log/nas_setup.log"
@@ -155,17 +147,13 @@ validate_config() {
fi fi
done done
# Validate Docker dependencies # Validate Docker dependencies
if [[ "${INSTALL_DOCKER:-false}" != "true" ]]; then if [[ "${INSTALL_DOCKER:-false}" != "true" ]]; then
if [[ "${INSTALL_VAULTWARDEN:-false}" == "true" ]] || [[ "${INSTALL_JELLYFIN:-false}" == "true" ]] || [[ "${INSTALL_PORTAINER:-false}" == "true" ]]; then if [[ "${INSTALL_VAULTWARDEN:-false}" == "true" ]] || [[ "${INSTALL_JELLYFIN:-false}" == "true" ]] || [[ "${INSTALL_PORTAINER:-false}" == "true" ]]; then
log_warning "Docker-abhängige Services sind aktiviert, aber Docker ist deaktiviert. Erzwinge neue Konfiguration." log_warning "Docker-abhängige Services sind aktiviert, aber Docker ist deaktiviert. Bitte wähle Docker oder deaktiviere diese Services."
return 1 # Force create_interactive_config ((errors++))
fi fi
fi fi
# Temporarily force new configuration for debugging
log_warning "Erzwinge neue Konfiguration für Debugging-Zwecke."
return 1
return $errors return $errors
} }