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: For comment 3 Created May 16, 2017, 7:09 p.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,16 @@
mode => 755,
}
+ $update_cms_cmd = [
+ "hg", "pull",
+ "--quiet",
+ "--update",
+ "--repository", "/opt/cms",
+ ]
+
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