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
This commit is contained in:
Matthew Treinish 2015-10-21 17:23:58 -04:00
parent c974b922e9
commit 559d6b83c7
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177

View File

@ -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: