Skip to content

Commit

Permalink
Install crontab: Fixes CentOS error
Browse files Browse the repository at this point in the history
  • Loading branch information
zuazo committed Sep 15, 2015
1 parent 5f04c62 commit 7181d5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Requirements

* apache2
* apt
* cron
* database
* mysql
* nginx
Expand Down
3 changes: 2 additions & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

depends 'apache2', '~> 3.0'
depends 'apt', '~> 2.0'
depends 'cron', '~> 1.6'
depends 'database', '~> 4.0'
depends 'mysql', '~> 6.0'
depends "mysql2_chef_gem", "~> 1.0.1"
depends 'mysql', '~> 6.0'
depends 'nginx', '~> 2.7'
depends 'openssl', '~> 4.0'
depends 'php', '~> 1.4'
Expand Down
2 changes: 2 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@
# Enable cron for background jobs
#==============================================================================

include_recipe 'cron'

if node['owncloud']['cron']['enabled'] == true
cron 'owncloud cron' do
user node[web_server]['user']
Expand Down

0 comments on commit 7181d5a

Please sign in to comment.