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:
parent
c974b922e9
commit
559d6b83c7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user