Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/manifests/server.pp

Issue 29438568: Noissue - Improve CMS repository pull command (Closed)
Patch Set: Created May 16, 2017, 12:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/manifests/server.pp
===================================================================
--- a/modules/web/manifests/server.pp
+++ b/modules/web/manifests/server.pp
@@ -145,9 +145,13 @@
mode => 755,
}
+ $update_cms_cmd = [
+ "hg", "pull", "-q", "-u", "-R", "/opt/cms",
mathias 2017/05/16 09:00:07 This should be all single quotes.
+ ]
+
cron {'update_cms':
ensure => present,
- command => "hg pull -q -u -R /opt/cms",
+ command => shellquote($update_cms_cmd),
minute => '4-59/20',
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld