waffentrager: postresql dir creation

This commit is contained in:
Mateusz Słodkowicz 2024-03-23 12:42:02 +01:00
parent d5ef421ebb
commit 0e985b318f
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
cryptsetup luksOpen /dev/disk/by-uuid/${cfg.uuid} elements -d ${config.sops.secrets.elements.path}
mount /dev/mapper/elements ${cfg.path}
'' + lib.optionalString config.waffentragerService.postgresql.enable ''
mkdir -p ${config.services.postgresql.dataDir}
mkdir -p ${cfg.postgresqlDir}/${config.waffentragerService.postgresql.version}
chown -R postgres:postgres ${cfg.postgresqlDir}
''