Skip to content

Commit 0c5e2ed

Browse files
author
Lennart Betz
authored
Merge pull request #422 from mysociety/install-package-before-dirs
Install: Ensure package installed before file resources
2 parents 0e97070 + 3083261 commit 0c5e2ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifests/install.pp

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
package { $package_name:
2727
ensure => installed,
2828
}
29+
File {
30+
require => Package[$package_name],
31+
}
2932
}
3033

3134
if $extra_packages {
@@ -71,7 +74,7 @@
7174
mode => '0755',
7275
}
7376

74-
exec { 'link old db schema directory for compatibility':
77+
-> exec { 'link old db schema directory for compatibility':
7578
path => $facts['path'],
7679
command => "ln -s ${data_dir}/schema ${comp_dir}/schema",
7780
unless => "stat ${comp_dir}/schema",

0 commit comments

Comments
 (0)