Commit Graph

31 Commits

Author SHA1 Message Date
master3395
4f8423f6bf Fix script execution: use bash without exec and ensure proper exit codes
- Replace exec with direct bash execution followed by exit
- This allows cyberpanel.sh to properly execute ./cyberpanel_installer.sh
- Add fallback directories for cd command
- Preserve exit codes from cyberpanel.sh execution
2026-01-26 21:22:18 +01:00
master3395
b678f2a64c Use bash instead of sh to execute cyberpanel.sh
- cyberpanel.sh uses #!/bin/bash so should be executed with bash
- Change to /tmp directory before execution to ensure writable location
- Fixes permission issues when cyberpanel.sh tries to execute other scripts
2026-01-26 21:17:34 +01:00
master3395
84a5a839d3 Use sh to execute cyberpanel.sh to avoid permission issues
- Execute with 'sh' instead of relying on exec permissions
- More reliable in process substitution context
- Handles cases where chmod might not work properly
2026-01-26 21:16:01 +01:00
master3395
12cc48bb6a Fix permission denied error - use absolute path and exec for cyberpanel.sh
- Use absolute path (/tmp/cyberpanel-96375.sh) instead of relative path
- Use exec instead of ./ to execute the script
- Ensures proper permissions and execution in process substitution context
- Clean up script file after execution
2026-01-26 21:14:59 +01:00
master3395
eca38394a3 Simplify install.sh to match stable branch approach
- Remove complex modular architecture that was causing variable persistence issues
- Use simple OS detection like stable branch
- Download cyberpanel.sh directly for v2.5.5-dev branch
- Add disk space checking (10GB minimum)
- Support both yum and dnf for RHEL-based systems
- Fallback to standard cyberpanel.sh if branch-specific download fails
- Much simpler and more reliable approach
2026-01-26 21:13:02 +01:00
master3395
c41b095a71 Always re-capture OS variables in install_dependencies to ensure they persist
- Always call detect_os() and get_os_info() in install_dependencies()
- This ensures variables are fresh and properly captured
- Add confirmation message showing captured values
- Fixes issue where variables were detected but empty when passed to manage_dependencies
2026-01-26 21:11:18 +01:00
master3395
42cdbeba18 Fix OS variable persistence - use eval with get_os_info in install_dependencies
- Remove debug output that wasn't showing
- Use eval with get_os_info() to properly capture OS variables
- Add better error messages showing actual variable values
- Ensure variables are properly exported before calling manage_dependencies
2026-01-26 21:09:46 +01:00
master3395
4addca7cfd Ensure file ends with newline 2026-01-26 20:59:45 +01:00
master3395
e1df3180e3 Remove extra fi statement causing syntax error 2026-01-26 20:56:39 +01:00
master3395
e6f6a33973 Fix syntax error (missing fi) and add disk space checking
- Fix missing 'fi' closing the TEMP_DIR check block
- Add check_disk_space() function to verify minimum 10GB available
- Display disk space requirements and available space
- Warn if insufficient space but allow continuation
2026-01-26 20:56:15 +01:00
master3395
3c922b7f62 Fix OS variable capture - use get_os_info() to properly retrieve values
- Use eval with get_os_info() to capture OS variables
- Ensures variables are properly set in current shell scope
- Fixes issue where variables were detected but not available to install_dependencies()
2026-01-26 20:54:07 +01:00
master3395
7ddf3fd9d9 Add debug output to diagnose OS variable passing issue 2026-01-26 20:53:48 +01:00
master3395
69052ce455 Fix set -e causing exit on mkdir failure - disable temporarily for temp dir creation
- Temporarily disable set -e when trying to create temp directories
- Prevents script from exiting when /tmp is full
- Allows fallback to alternative directories or fallback installer
2026-01-26 20:51:16 +01:00
master3395
3debc2580a Handle disk space issues - try multiple temp directories and fallback gracefully
- Try multiple temp directory locations (/tmp, /var/tmp, /root, /root)
- Clean up old temporary directories before creating new ones
- Skip git clone if no temp directory can be created
- Try multiple locations for fallback installer download
- Better error messages for disk space issues
2026-01-26 20:49:18 +01:00
master3395
2a6d05d986 Fix git clone fallback logic - properly handle failed clones
- Use flag-based approach to track git clone success
- Verify repository structure (install.sh and modules/) before using
- Fix fallback execution path
- Support both yum and dnf for package installation
- Better error messages
2026-01-26 20:45:42 +01:00
master3395
4d9d4c66c5 Improve git clone error handling and fallback logic
- Add timeout for git clone (180 seconds)
- Better error messages showing actual git errors
- Verify repository structure before using cloned repo
- Improve fallback installer download with better error handling
- Support both yum and dnf for RHEL-based systems
2026-01-26 20:45:14 +01:00
master3395
236f046f70 Fix OS variable passing to dependency manager - export variables and add safety checks 2026-01-26 20:43:17 +01:00
master3395
5d272f8e8b Fix v2.5.5-dev installation issues: handle curl execution and MariaDB upgrade attempts
- Fix install.sh to detect curl/wget execution and clone repo before loading modules
- Add MariaDB detection and upgrade attempt logic in install.py
- Attempt MariaDB 12.1 upgrade first, fallback to existing 10.x if blocked
- Add comprehensive error handling and logging for upgrade attempts
- Update documentation with fix details
2026-01-26 20:39:25 +01:00
Master3395
ec3973e47b Enhance CyberPanel installation process with user-friendly progress indicators
- Added detailed status messages and progress indicators during the installation of CyberPanel to improve user experience.
- Implemented background installation with real-time feedback, allowing users to monitor the installation status without interruption.
- Updated the OS detection and dependency installation steps with clear prompts to guide users through the process.
- Improved overall structure and readability of the installation script for better maintainability.
2025-09-25 13:26:42 +02:00
Master3395
47e418be93 Remove deprecated installation and status scripts
- Deleted `install_enhanced.sh` and `INSTALLATION_STATUS_FINAL.md` as part of the transition to a modular architecture for the CyberPanel installer.
- Removed `INSTALLER_COMPLETION_SUMMARY.md` to streamline documentation and focus on essential components.
- Updated `install.sh` to reflect changes in the installation process, enhancing modularity and maintainability.
- Ensured that the installer now utilizes a more organized structure with dedicated modules for OS detection, dependency management, and installation processes.
2025-09-25 11:45:40 +02:00
Master3395
5d92ba33ed Add enhanced installation and service status scripts
- Introduced `fix_installation_issues.sh` to address critical installation issues for CyberPanel, including database connection, LiteSpeed service configuration, SSL certificate generation, and admin console setup.
- Added `install_enhanced.sh` as a robust installer with retry logic and comprehensive status checks, improving the installation experience.
- Created `service_status_check.sh` for detailed service and port status reporting, ensuring users can verify the health of their CyberPanel setup.
- Updated `install.sh` to download and execute the enhanced installer, providing a fallback to the original installer if necessary.
2025-09-25 11:21:00 +02:00
Master3395
18323dfb55 Enhance AlmaLinux 9 support in installation scripts
- Updated cyberpanel_upgrade.sh to differentiate AlmaLinux 9 for dnf package management and specific package installations.
- Improved OS detection logic to handle AlmaLinux 9 separately, ensuring correct repository setup and package installations.
- Enhanced error handling and logging for better feedback during the installation process.
- Refined version validation in cyberpanel.sh to support stable versions, development versions, and commit hashes.
- Streamlined installation process in install.sh to accommodate specific branch, tag, or commit installations.
2025-09-24 22:45:12 +02:00
Master3395
8d43de1e76 Refactor installation scripts to use dnf for package management on AlmaLinux
- Updated install.sh to replace yum with dnf for installing and updating curl and wget on AlmaLinux 9 and 10.
- Enhanced install/install.py to streamline MariaDB package installation with improved error handling and added installation of PHP dependencies, ensuring compatibility with AlmaLinux.
- Implemented logic to save MySQL root password securely and handle potential errors during installation processes.
2025-09-24 20:23:49 +02:00
Master3395
b454e99759 Enhance OS detection and package management in installation scripts: Updated install.sh to improve OS detection logic for various CentOS, AlmaLinux, CloudLinux, Ubuntu, Debian, and openEuler versions. Refined package installation commands and added error handling for unsupported OS scenarios. Improved service name mapping in install.py for better compatibility across distributions. 2025-09-23 23:33:05 +02:00
Master3395
69cdc94038 Enhance branch detection and installation process in scripts: Updated cyberpanel.sh to improve branch/version detection logic based on execution context. Modified install.sh to allow installation from a specified branch and adjusted preUpgrade.sh to support branch parameter for upgrades. Improved error handling and logging for better user feedback. 2025-09-23 21:50:37 +02:00
Master3395
59c415ae1d Enhance CyberPanel functionality with FTP Quota and Bandwidth Management features: Added models, views, and templates for managing FTP quotas and bandwidth resets. Implemented IP blocking functionality with associated views and templates. Updated system scripts for improved repository synchronization and OS detection. Removed outdated workflow files. 2025-09-23 21:09:38 +02:00
Master3395
8a4a10e9ce Update install.sh and README.md: Remove support for Ubuntu 18.04 and CentOS 8, and adjust OS detection logic. Update supported OS list in README to reflect current compatibility. 2025-09-20 19:44:43 +02:00
Master3395
9d3db6efa4 Update install.sh to correctly identify CentOS Stream 9: Change SERVER_OS variable from "CentOS8" to "CentOSStream9" for accurate OS detection during installation.
https://github.com/usmannasir/cyberpanel/pull/1393
2025-09-20 19:38:06 +02:00
Master3395
ae31c6572e Update CyberPanel installer scripts to support additional operating systems and versions. Enhance OS detection logic in install.sh and cyberpanel_upgrade.sh for CentOS 9, CentOS Stream 9, Rocky Linux 9, RHEL 8, RHEL 9, and Debian 11-13. Revise README.md to reflect updated support details and clarify compatibility. Improve error messages for unsupported OS detection. 2025-09-19 01:19:49 +02:00
Master3395
f7f51e67c4 Add Almalinux 10 and php 84+85
Add Almalinux 10 and php 84+85
2025-09-07 22:57:53 +02:00
usmannasir
6dd7114f6d Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00