panel icon indicating copy to clipboard operation
panel copied to clipboard

feat: Helper script

Open MrWeez opened this issue 1 year ago • 13 comments

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

MrWeez avatar Jun 02 '24 19:06 MrWeez

Current deadline for this PR: 31.07.2024

MrWeez avatar Jul 24 '24 09:07 MrWeez

~~### ⚠️ Dedline updated New Date: 04.08.2024 Reason: Too much work, too little time. I will finish it by August 4th~~

MrWeez avatar Jul 31 '24 23:07 MrWeez

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

MrWeez avatar Aug 03 '24 00:08 MrWeez

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
  • 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

MrWeez avatar Aug 03 '24 12:08 MrWeez

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

MrWeez avatar Aug 03 '24 13:08 MrWeez

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

MrWeez avatar Aug 03 '24 13:08 MrWeez

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

MrWeez avatar Aug 03 '24 13:08 MrWeez

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 avatar Aug 03 '24 23:08 MrWeez

@MrWeez what you want to do of this branch ?

S0ly avatar Dec 21 '24 03:12 S0ly

@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.

MrWeez avatar Dec 21 '24 18:12 MrWeez

@S0ly PR is already ready, it's just waiting for a review

MrWeez avatar Jan 12 '25 14:01 MrWeez

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

S0ly avatar Mar 30 '25 13:03 S0ly

merge if you think its ready

S0ly avatar Mar 30 '25 13:03 S0ly