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

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



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?

Kind regards,

Mark



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