From 176d152fb83176cdcbac910acf1d5ad9f8ba1e44 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 24 Jul 2020 16:45:42 -0300 Subject: Updates getcomposer (4) --- manifests/composer.pp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'manifests') diff --git a/manifests/composer.pp b/manifests/composer.pp index 3f51ecd..ea3b80e 100644 --- a/manifests/composer.pp +++ b/manifests/composer.pp @@ -22,18 +22,6 @@ class php::composer( } } - cron { "composer-self-update": - command => "/usr/local/bin/composer self-update > /dev/null 2>&1", - user => root, - hour => "03", - minute => "30", - ensure => $provider ? { - 'upstream' => present, - default => absent, - }, - require => Exec['getcomposer'], - } - if ($provider == 'upstream') { exec { 'getcomposer': # 'The HOME or COMPOSER_HOME environment variable must be set for composer to install correctly' @@ -46,4 +34,16 @@ class php::composer( require => File['/usr/local/bin/getcomposer'], } } + + cron { "composer-self-update": + command => "/usr/local/bin/composer self-update > /dev/null 2>&1", + user => root, + hour => "03", + minute => "30", + ensure => $provider ? { + 'upstream' => present, + default => absent, + }, + require => Exec['getcomposer'], + } } -- cgit v1.2.3