1 |
Hello, |
2 |
|
3 |
I have a bash script executed from cronie's anacron daemon which |
4 |
performs a local rsync backup and then emails the status via nullmailer |
5 |
. The latter part never worked until I understood that some |
6 |
nullmailer-inject options that I set via environment variables are not |
7 |
visible from the bash script when spawned by anacron (all was fine from |
8 |
an interactive shell). Adding a 'source /etc/profile.env' to the bash |
9 |
script solved the issue. |
10 |
|
11 |
Are there any contraindication to sourcing the whole profile.env from a |
12 |
non-interactive shell? Potential security issues? |
13 |
|
14 |
thanks, |
15 |
|
16 |
raffaele |