-
Notifications
You must be signed in to change notification settings - 8000 Fork 48
Unsafe Installation #94
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
Comments
Hi,
1+2) There is configuration in the script, which does include the possibility to modify the path to the backup directory. Given this I do not think it will be a good idea to support that approach. Currently it is using the path relative to where you execute the script from. Additionally safety-wise, it is the responsibility of the user to verify what is being downloaded and executed (code is open-source, so all can review, but still). |
I suppose we were both dealing with 8.3.5 at more or less the same time. I made some changes to address the issues I mention, but do not have time to fork and create pull request. Instead, patch file attached.
|
I agree that if one downloads and inspects the script, one can modify the definition of the BACKUP_DIR. One should perhaps verify what they are about to execute. However, many scripts available these days do provide the option of one-line execution to activate them. This is particularly attractive to those who lack the skills to inspect and understand code but still want to use it. For one, I always look at the code on Git Hub, but I prefer the one-line execution so no files remain behind on the machine where the installation happens. To that end, I used the second form of execution in my original report. That then reveals:
|
Thanks. Will have a look and see if further improvements van be implemented. |
Describe the bug
I am running PVE 8.3.5 and did not notice the script was for 8.3.4. I incorrectly attempted to run the mod script:
This produced an error partway through the script (text was unfortunately lost). I figured out the correct way to run it:
When I did that, I got the message that things were already installed. I was never asked for installation options, and there were no backup files. I suspect the result of the first attempt.
the steps to reproduce also describe how backup files are not created and how the script does not check if they were successfully created. This should be tested before proceeding to make changes.
To Reproduce
Steps to reproduce the behavior:
bash <(curl -fsSL https://raw.githubusercontent.com/Meliox/PVE-mods/refs/heads/main/pve-mod-gui-sensors.sh) install
bash <(curl -fsSL https://raw.githubusercontent.com/Meliox/PVE-mods/refs/heads/main/pve-mod-gui-sensors.sh) install
Backup of "/usr/share/perl5/PVE/API2/Nodes.pm" saved to "/proc/123649/fd/backup/Nodes.pm.2025-04-05_22-11-56"
followed bycp: cannot create regular file '/proc/123649/fd/backup/pvemanagerlib.js.2025-04-05_22-11-56': No such file or directory
. Ditto forpvemanagerlib.js
Expected behavior
/proc/<numbers>
as backup-dirScreenshots
If applicable, add screenshots to help explain your problem.
Sensors output
If applicable, provide sensor datadump (use the argument save-sensors-data)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: