Skip to content

Commit

Permalink
Merge pull request #422 from mysociety/install-package-before-dirs
Browse files Browse the repository at this point in the history
Install: Ensure package installed before file resources
  • Loading branch information
lbetz authored Sep 4, 2024
2 parents 0e97070 + 3083261 commit 0c5e2ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
package { $package_name:
ensure => installed,
}
File {
require => Package[$package_name],
}
}

if $extra_packages {
Expand Down Expand Up @@ -71,7 +74,7 @@
mode => '0755',
}

exec { 'link old db schema directory for compatibility':
-> exec { 'link old db schema directory for compatibility':
path => $facts['path'],
command => "ln -s ${data_dir}/schema ${comp_dir}/schema",
unless => "stat ${comp_dir}/schema",
Expand Down

0 comments on commit 0c5e2ed

Please sign in to comment.