Re: poudriere won;t run as cron
- Reply: Paul Macdonald : "Re: poudriere won;t run as cron"
- In reply to: Paul Macdonald : "Re: poudriere won;t run as cron"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Feb 2025 19:23:37 UTC
On Wed, Feb 05, 2025 at 10:02:52AM +0000, Paul Macdonald wrote:
>
> >
> >
> > On 2/4/25 10:06, Paul Macdonald wrote:
> > >
> > > I'm struggling to get my poudriere scripts running from cron (as root)
> > a copy of your script and cron entry would probably be a good first step
> > for others to try to help you out.
> >
> > -pete
> >
> It's nothing exotic and they run fine manually, so i'm assuming something in
> my environment.
>
> 20 12 * * * * /home/paul/portal_scripts/poudriere/update.ports.sh
> 00 18 * * * * /home/paul/portal_scripts/poudriere/bulk.sh
>
> #>> /var/log/poudriere 2>&1
>
> bulk.sh is:
>
> #!/bin/sh
>
> echo "Building for target: 13.4"
> /usr/local/bin/poudriere bulk -j 13-4x644 -p default -f
> /usr/local/etc/poudriere.d/packages-default
>
looks like you may be missing a "\" after the -f to have the shell ignore the linebreak
pointing to your file list in "packages-default". probably want something like this:
echo "Building for target: 13.4"
/usr/local/bin/poudriere bulk -j 13-4x644 -p default -f \
/usr/local/etc/poudriere.d/packages-default
-p