fix(defaults): restore SCRIPT_AUTHOR and validate_config; remove debug-force
This commit is contained in:
@@ -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"
|
||||||
@@ -158,14 +150,10 @@ validate_config() {
|
|||||||
# 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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user