11.2-U7 to 11.3 iocage exec inside cron requires root instead of ~/

CarlB

Dabbler
Joined
Jan 30, 2018
Messages
40
Is anyone else seeing this issue?

My 11.2-U7 cron job:
Code:
iocage exec lftp_2 bash ~/scripts/sync_torrents.sh && iocage exec lftp_2 bash ~/scripts/syncdownloads.sh

Runs fine.

When run on 11.3 gives the following error:
Code:
bash: //scripts/synctorrents.sh: No such file or directory Command: bash //scripts/synctorrents.sh failed!


Changing ~/ to root corrects it.
Code:
iocage exec lftp_2 bash root/scripts/sync_torrents.sh && iocage exec lftp_2 bash root/scripts/syncdownloads.sh


Just a weird oddity I noticed as my job started to fail.
 
Top