[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] ezjail-admin update -P

On Jul 14, 2008, at 2:46 AM, Dirk Engling wrote:

Christoph Sold wrote:

Write a small shell script which adds the missing PATH components:
/usr/local/bin/ezjail-admin update -P
Call this script from cron.

Hmmm, would it be ezjails responsibility to find and execute the correct portsnap path?



1) No need to make a shell script: the PATH can be set directly in the crontab:

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/ root/bin 1 3 * * * /usr/sbin/portsnap cron update && /usr/local/bin/ezjail- admin update -P

2) Yes, it would be preferable if ezjail-admin used fully qualified paths to the executables on which it depends.