waffentrager: postresql dir creation
This commit is contained in:
parent
d5ef421ebb
commit
0e985b318f
|
@ -21,7 +21,7 @@
|
||||||
cryptsetup luksOpen /dev/disk/by-uuid/${cfg.uuid} elements -d ${config.sops.secrets.elements.path}
|
cryptsetup luksOpen /dev/disk/by-uuid/${cfg.uuid} elements -d ${config.sops.secrets.elements.path}
|
||||||
mount /dev/mapper/elements ${cfg.path}
|
mount /dev/mapper/elements ${cfg.path}
|
||||||
'' + lib.optionalString config.waffentragerService.postgresql.enable ''
|
'' + 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}
|
chown -R postgres:postgres ${cfg.postgresqlDir}
|
||||||
''
|
''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue