panel
panel copied to clipboard
feat: Helper script
Hi! 👋
I present to your attention a script that was created to simplify routine actions such as ✅ installing dependencies and 🔄️ updating CPGG. It will be useful for simplifying actions for beginners, as well as for managing instance in a Docker container
This PR closes #955
TODO:
- [x] Installing dependencies
- [x] Updating panel
- [x] Argument mode (e.g. --install, --update)
- [x] Code refactor
- [x] Info & Help menu
- [x] UI refactor
- [x] Fix
The repository 'https://packages.sury.org/php focal Release' does not have a Release file.on Ubuntu distros - [x] Testing on Debian-based OS
- [x] Remove Easter egg
- [x] Remove unnecessary sudo
Known issues: none
⚠️ WARNING FOR TESTERS: Do not forget to create a backup copy of important data, I cannot guarantee compatibility and correct operation of the script. If you have identified a problem, be sure to report it in the comments to the PR
Current deadline for this PR: 31.07.2024
~~### ⚠️ Dedline updated New Date: 04.08.2024 Reason: Too much work, too little time. I will finish it by August 4th~~
I think the code development is complete, only testing remains!
Required testing on all main Debian-based distros (Debian 11 and 12, Ubuntu 20.04 22.04 24.04). I will always be glad if someone is ready to help.
⚠️ WARNING FOR TESTERS: Do not forget to create a backup copy of important data, I cannot guarantee compatibility and correct operation of the script. If you have identified a problem, be sure to report it in the comments to the PR
For testers
Quick Deploy Script
curl https://cdn.mrweez.dev/public/ctrlhelper_fast_deploy.sh | sudo bash
bash /var/www/ctrlpanel/bin/ctrlhelper.sh
Test List
- CLI-GUI mode (default)
- Install full
- [x] Debian 11
- [x] Debian 12
- [x] Ubuntu 20.04
- [x] Ubuntu 22.04
- [x] Ubuntu 24.04
- Install min
- [x] Debian 11
- [x] Debian 12
- [x] Ubuntu 20.04
- [x] Ubuntu 22.04
- [x] Ubuntu 24.04
- Update
- [x] Debian 11
- [x] Debian 12
- [x] Ubuntu 20.04
- [x] Ubuntu 22.04
- [x] Ubuntu 24.04
- Install full
- CLI mode (--cli)
- Install full
- [x] Debian 11
- [x] Debian 12
- [x] Ubuntu 20.04
- [x] Ubuntu 22.04
- [x] Ubuntu 24.04
- Install min
- [x] Debian 11
- [x] Debian 12
- [x] Ubuntu 20.04
- [x] Ubuntu 22.04
- [x] Ubuntu 24.04
- Update
- [x] Debian 11
- [x] Debian 12
- [x] Ubuntu 20.04
- [x] Ubuntu 22.04
- [x] Ubuntu 24.04
- Install full
Issue on Ubuntu 20.04 when installing dependencies
The repository 'https://packages.sury.org/php focal Release' does not have a Release file.
This part of the code needs to be changed
Issue on Ubuntu 20.04 when installing dependencies
The repository 'https://packages.sury.org/php focal Release' does not have a Release file.This part of the code needs to be changed
Same on Ubuntu 22.04
Issue on Ubuntu 20.04 when installing dependencies
The repository 'https://packages.sury.org/php focal Release' does not have a Release file.This part of the code needs to be changed
The error is also present on Ubuntu 24.04, but the installation is completed successfully because the php repository is preinstalled in the system
All script issues have been fixed, all checks have been passed. Another 1-2 people's feedback is needed, and it will be possible to merge PR into dev branch
@MrWeez what you want to do of this branch ?
@MrWeez what you want to do of this branch ?
I'll fix a couple of things soon, and release it under version 0.1.0, and completely refactor it in the future.
@S0ly PR is already ready, it's just waiting for a review
script seems to be working as for now
but I would still recommend to add :
- Comprehensive header documentation with examples
- Implement logging functionality with different verbosity levels
- Version compatibility checking
for future updates
merge if you think its ready