[Change Request] Use single quotes for the mysql backup cronjob.

Paul W. Frields stickster at gmail.com
Fri Mar 20 12:32:08 UTC 2009


On Fri, Mar 20, 2009 at 01:20:09PM +0100, Mark Wormgoor wrote:
> Ricky Zhou wrote:
>> This has been causing us to get extra cron spam (and stalling mysql
>> updates).  I doubt anybody would consider this very risky :-)
>>
>> ---
>>  manifests/services/db.pp |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/manifests/services/db.pp b/manifests/services/db.pp
>> index fbed669..b5a7a29 100644
>> --- a/manifests/services/db.pp
>> +++ b/manifests/services/db.pp
>> @@ -37,7 +37,7 @@ class mysqlBackup {
>>      }
>>       cron { mysql-backup:
>> -        command => "time /bin/sleep $(($RANDOM/20)) ; /var/lib/mysql/save-mysql",
>> +        command => 'time /bin/sleep $(($RANDOM/20)) ; /var/lib/mysql/save-mysql',
>
> Can you use $(($RANDOM/20)) between single quotes?

Not in a bash shell, but these quotes aren't used in that context AIUI.

-- 
Paul W. Frields                                http://paul.frields.org/
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
  http://redhat.com/   -  -  -  -   http://pfrields.fedorapeople.org/
  irc.freenode.net: stickster @ #fedora-docs, #fedora-devel, #fredlug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20090320/dcba2d24/attachment.bin 


More information about the infrastructure mailing list