Skip to content

Commit

Permalink
ensure directory '/var/db' on Debian/Ubuntu systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning- committed Jul 26, 2024
1 parent dbfc740 commit 0dd7902
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
group => $nextcloud::system_group,
}

if ($facts['os']['family'] == 'Debian') or ($facts['os']['family'] == 'Ubuntu') {
file { '/var/db':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
}
}

# Record Nextcloud's datadirectory, so that it can be used by the custom fact.
file { 'Create data statefile':
ensure => file,
Expand Down

0 comments on commit 0dd7902

Please sign in to comment.