From 0dd7902731a9edeeecb7af35884bb0eb7db3c10b Mon Sep 17 00:00:00 2001 From: Lightning Date: Fri, 26 Jul 2024 16:03:38 +0200 Subject: [PATCH] ensure directory '/var/db' on Debian/Ubuntu systems --- manifests/install.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manifests/install.pp b/manifests/install.pp index 1b7d3cf..eec4045 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -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,