The cronjob is run from cron; cron is configured via /etc/pam.d/cron to use pam_env.so by default, which reads /etc/environment. Why is this not working on your system?
Individual cron jobs should definitely not be expected to source /etc/environment directly.
The cronjob is run from cron; cron is configured via /etc/pam.d/cron to use pam_env.so by default, which reads /etc/environment. Why is this not working on your system?
Individual cron jobs should definitely not be expected to source /etc/environment directly.