Revert temporary debugging changes now that lib scripts are fixed
This commit is contained in:
@@ -5,7 +5,15 @@
|
|||||||
# 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_AUTHOR="Sebastian Palencsár"
|
SCRIPT_AUTH # Validate Docker dependencies
|
||||||
|
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"
|
||||||
|
|||||||
12
setup.sh
12
setup.sh
@@ -269,12 +269,18 @@ check_system_requirements() {
|
|||||||
load_or_create_config() {
|
load_or_create_config() {
|
||||||
log_info "Loading configuration..."
|
log_info "Loading configuration..."
|
||||||
|
|
||||||
# Temporarily force new configuration for debugging
|
if load_config; then
|
||||||
# Remove any existing config file to ensure clean state
|
log_info "Configuration loaded from ${CONFIG_FILE}"
|
||||||
rm -f "${CONFIG_FILE}"
|
if ! validate_config; then
|
||||||
|
log_warning "Configuration validation failed - creating new configuration"
|
||||||
|
create_interactive_config
|
||||||
|
load_config # Reload the new configuration
|
||||||
|
fi
|
||||||
|
else
|
||||||
log_info "Creating new configuration..."
|
log_info "Creating new configuration..."
|
||||||
create_interactive_config
|
create_interactive_config
|
||||||
load_config # Load the new configuration
|
load_config # Load the new configuration
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
create_interactive_config() {
|
create_interactive_config() {
|
||||||
|
|||||||
Reference in New Issue
Block a user