From ad98dd210c1eea16356643ac73cf21d150180f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=83rcziem=20=E2=84=A2?= <118485377+spalencsar@users.noreply.github.com> Date: Mon, 6 Oct 2025 10:49:32 +0200 Subject: [PATCH] Disable Webmin for openSUSE and update documentation - Webmin not available in openSUSE Leap repositories - Skip Webmin installation prompt for openSUSE users - Update README to clarify Webmin availability - Provide manual installation instructions for openSUSE --- README.md | 4 ++-- lib/webmin.sh | 12 ++++++++---- setup.sh | 8 +++++++- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3c6941f..b9e3e5c 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file - **Netdata** for real-time system monitoring - **Jellyfin** media server for multimedia content - **Vaultwarden** for secure password management -- **Webmin** web-based system administration interface +- **Webmin** web-based system administration interface (Ubuntu/Debian/Fedora/Arch only) - **System Performance Tracking** with automatic reports - **Comprehensive Unit Testing** framework with extensive test coverage @@ -151,7 +151,7 @@ The script guides you through an interactive configuration: - **Vaultwarden:** Password manager with security hardening (requires Docker, optional) - **Jellyfin:** Media server with modern GPG keys (requires Docker, optional) - **Portainer:** Docker management with HTTPS (requires Docker, optional) -- **Webmin:** Web-based system administration interface (optional) +- **Webmin:** Web-based system administration interface (Ubuntu/Debian/Fedora/Arch only, optional) - **Unattended Upgrades:** Automatic security updates (optional, disabled by default) ### User Configuration diff --git a/lib/webmin.sh b/lib/webmin.sh index 247ecf8..710e4db 100644 --- a/lib/webmin.sh +++ b/lib/webmin.sh @@ -28,10 +28,14 @@ install_webmin() { handle_error sudo dnf install -y webmin ;; opensuse) - # Add Webmin repository - handle_error sudo zypper addrepo -f https://download.webmin.com/download/yum/webmin-suse.repo - handle_error sudo zypper refresh - handle_error sudo zypper install -y webmin + # Webmin is not available in official openSUSE Leap repositories + # For openSUSE, Webmin needs to be installed manually or from third-party repos + log_warning "Webmin is not available in official openSUSE Leap repositories" + log_info "To install Webmin on openSUSE manually:" + log_info "1. Download from https://www.webmin.com/download.html" + log_info "2. Follow the manual installation instructions" + log_info "3. Webmin will be available at https://your-server:10000" + return 1 ;; arch) # Webmin is available in AUR diff --git a/setup.sh b/setup.sh index fc7423b..5394530 100644 --- a/setup.sh +++ b/setup.sh @@ -364,7 +364,13 @@ create_interactive_config() { # Automatic updates (optional) save_config "ENABLE_AUTO_UPDATES" "$(ask_yes_no "Enable automatic security updates (unattended-upgrades)?" "n" && echo "true" || echo "false")" - save_config "INSTALL_WEBMIN" "$(ask_yes_no "Install Webmin web interface?" "n" && echo "true" || echo "false")" + # Webmin (not available on openSUSE) + if [[ "$DISTRO" == "opensuse" ]]; then + log_info "Webmin is not available for openSUSE Leap - skipping" + save_config "INSTALL_WEBMIN" "false" + else + save_config "INSTALL_WEBMIN" "$(ask_yes_no "Install Webmin web interface?" "n" && echo "true" || echo "false")" + fi log_success "Configuration created and saved to ${CONFIG_FILE}" }