Hi Noth,
On Mon, 20 May 2019 23:50:13 +0200 Noth wrote:
> /root/duplicity-hostname.sh
Does this script work properly when you're logged in as root?
>
> #!/bin/ksh
> PASSPHRASE=mypassword
try: export PASSPHRASE='mypassword'
> Can daily.local even handle this or is the environment too limited?
daily is run by root's crontab.
To get root's cron environment mailed out, add a temp root cron job:
[next 5 mins] [this hour] * * * logname; umask; pwd; printenv | sort
If your script works well when logged in as root, but not from cron,
add the missing environment elements to daily.local/script/root's crontab.
Cheers,
--
Craig Skinner | http://linkd.in/yGqkv7
No comments:
Post a Comment