diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-12-29 22:57:48 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-12-29 22:57:48 -0200 |
commit | 10167c1f1d0d288760c631ae6e46270e4a69e93a (patch) | |
tree | af19c98271a755ee061948a379cbe84d2c4dd924 | |
parent | b0bf1a0a9507bad52d1a5f5c2a0afb7ce61d6170 (diff) | |
download | puppet-cherrymusic-10167c1f1d0d288760c631ae6e46270e4a69e93a.tar.gz puppet-cherrymusic-10167c1f1d0d288760c631ae6e46270e4a69e93a.tar.bz2 |
Adds cherrymusic-update cronjob
-rw-r--r-- | manifests/init.pp | 10 |
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'], + } } |