-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
$PATH being ignored by autorestic #374
Comments
I re-wrote the script in Perl and same thing happens: I have re-written the script in Perl and the same thing happens: Script:
Same error:
|
If I remove hard coded paths to the --restic-bin in the autorestic command it fails... It seems /usr/local/bin/autorestic is found without hardcoding path but when autorestic calls 'restic' it fails on PATH as well. autorestic does not have access to $PATH
|
Again - if I run the Perl script manually from the command line and pass in job-end it runs fine with no PATH issues.
|
So is the issue in Proxmox, autorestic or my script? |
autorestic does not seem to have access to $PATH when calling restic or ssh binaries. I am running a hook script after a Proxmox backup and I have output '$PATH' and $(which ssh) and the ssh binary is in the correct path. It seems that autorestic is ignoring the system $PATH env variable. While I was able to use the --restic-bin option and hard code the restic path (also in an accessible $PATH) it is now falling over on ssh.
Expected behavior
Environment
Hook script that calls autorestic (and produces output below):
Output:
The text was updated successfully, but these errors were encountered: