New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Hestia Repair Tool #4330
Comments
when you messed up sth, then you should be able to revert it,
Thats not an "official" tool ;) |
Dear @gOOvER, your answer has a very childish approach. |
Dear @amaramadex not really. This is my personal opinion. And you as Sys Admin shouldn't need such a Tool. ;) (Btw Europe and Imprint ;) ) |
Isn´t that called a backup? |
Not necesary, a repair tool can be used just as "integrity check of system" This can detect modified files, owners etc and inform you about that. You may have broken something by mistake and months later something fails and you need to know what happened, checking the integrity of the panel with a single tool is better than restoring a full backup. Not to mention that it can help check if everything is OK regarding security, that there is no injected code or modifications by someone in the control panel |
@Skamasle bravo 🫡 |
I make a lite script to start with this. May this can help some body, I modify one of my system check scripts In this case, this script just check /usr/local/hestia status, I have another script than just chmod / chown back if found some issues, but inst relevant for this part. First, get correct permisions, owners, gruop and sha files from clean and resent hestia install ( this just check, files, you can add directories easy
Then you get a file called: permission_file Copy this file and over this file you can check any server with same hestia version With this script:
From this base, you can start working This script just print if found any issue with sha, with owner / gruop or permisions of file. Then, you can add another functions to fix if broken or download new if sha isnt correct This print something like this:
I hope this can help some body to detect some issue in hestia. You can add some option to fix owner and off course need some options to check /home/ and orther dirs permisions. As i say It's just the basis of how this can work. |
Generally, I'm in agreement with this, but I can see an integrity check as a security feature (Like Nextcloud) could make sense, and when you're there, you can also check for stuff that's not how it should be, f.ex with permissions. The issue is that parsing all services(apache, nginx, maridadb, psql, dovecot, exim, spamassassin, etc.) to repair them if you break something - that's unrealistic and not possible. Do I think hestia should have a config check? Yes - if the tools support it like What I can see as helpful is something like opnsense has with the configuration backups (See here) so when you change a service config from the webinterface, hestia saves the previous version and allows you to show a diff to the previous versions and restore them. This would not prevent you from changing it via ssh and then not have this feature active, but it would certainly be nice. PS: I'd love to invite everyone to keep the tone professional. |
We already make backups of config files before we update Hestia ... |
I'll look into that. |
If this is implement, this could run after "do-release-upgrade" when the distro finished upgrading |
Describe the feature or change in detail
It would be nice to have Hestia Repair Tool, so if you mess up something that you can revert it to default values/permissions/templates, etc.
Sample 1: https://docs.plesk.com/en-US/obsidian/administrator-guide/plesk-administration/plesk-repair-utility.74649/
Sample 2: https://keyhelp-toolbox.tiiny.site/
Would you like to sponsor this feature to have it implemented?
No
The text was updated successfully, but these errors were encountered: