Real life delays, sorry...

On Thu 06 Apr 2006, Frank K?ster wrote:

> So does it make sense that I start of with the old ones?  I guess I need

Yes...

> config, postinst and maybe the templates file.
> 
> Here's a quick shot, untested:
> 
> In wwwoffle.config:
> 
> if [ -s /etc/cron.d/wwwoffle ]; then
>   ... as before ...
> elif [ -n "$CONFIG_ARG2" ]; # do this only when this is not a fresh install
>    db_set wwwoffle/fetchfrequency off
> fi
> 
> db_get wwwoffle/fetchfrequency   ###########################################
> rc=$?
> - if [ $rc -eq 0 -o $rc -ge 30 ]; then # bashism, and won't catch "off"

Hmm, that's not what I have in my wwwoffle.config ... 2.8e-2 at least
doesn't have that.

Besides, -o is NOT a bashism, I've been using that since SystemVR2.
ash accepts it fine also.

> But I don't understand the purpose of the first test where I fixed the
> bashism - why do you only act on the crontab file if the value is zero
> or if it is at least 30?  That means that I can't set it to 20 via
> debconf, doesn't it?

You seriously need to study debconf.... the value is in $RET;
here $rc contains the status, not the debconf value.
30 == question not asked.


Paul Slootman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to