summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-12-29 22:57:48 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-12-29 22:57:48 -0200
commit10167c1f1d0d288760c631ae6e46270e4a69e93a (patch)
treeaf19c98271a755ee061948a379cbe84d2c4dd924
parentb0bf1a0a9507bad52d1a5f5c2a0afb7ce61d6170 (diff)
downloadpuppet-cherrymusic-10167c1f1d0d288760c631ae6e46270e4a69e93a.tar.gz
puppet-cherrymusic-10167c1f1d0d288760c631ae6e46270e4a69e93a.tar.bz2
Adds cherrymusic-update cronjob
-rw-r--r--manifests/init.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index e5e8f35..f26da35 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -87,4 +87,14 @@ class cherrymusic {
Exec['systemctl-enable-cherrymusic'],
],
}
+
+ cron { "cherrymusic-update":
+ command => "/usr/local/share/cherrymusic/cherrymusic --update",
+ user => cherrymusic,
+ hour => "3",
+ minute => "30",
+ ensure => present,
+ environment => [ 'SHELL=/bin/bash' ],
+ require => Service['cherrymusic@cherrymusic'],
+ }
}