From 559d6b83c7cea80be38617402398037a048b53a8 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 21 Oct 2015 17:23:58 -0400 Subject: [PATCH] Only run mv if we generated a new js build This commit adds a missing refreshonly from the exec to run the mv which moves the build dir to the output dir. Previously we were running this on every exec which caused failures when a new build wasn't run. This should address this by only running the mv when we build the js. Change-Id: Id9d48c0e5da4567b0afefad22513c391b95e9bc0 --- manifests/site.pp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manifests/site.pp b/manifests/site.pp index e9433f7..7d7941e 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -25,9 +25,10 @@ define openstack_health::site( } exec {'move-static-files': - command => "mv ${openstack_health::source_dir}/build ${httproot}", - path => ['/usr/local/bin/', '/usr/bin/', '/bin/'], - subscribe => Exec['build-static-files'] + command => "mv ${openstack_health::source_dir}/build ${httproot}", + path => ['/usr/local/bin/', '/usr/bin/', '/bin/'], + subscribe => Exec['build-static-files'], + refreshonly => true, } file {$httproot: