hedgedoc: ensure upload directory exists

Upload directory is not created when uploading, but will fail silently.
Ensure the upload directory is created.
This commit is contained in:
Daniel Poelzleithner
2022-05-16 11:10:16 +02:00
committed by Florian Brandes
parent ed180b249f
commit ef7663761e

View File

@@ -1027,6 +1027,7 @@ in
${pkgs.envsubst}/bin/envsubst \
-o ${cfg.workDir}/config.json \
-i ${prettyJSON cfg.configuration}
mkdir -p ${cfg.configuration.uploadsPath}
'';
serviceConfig = {
WorkingDirectory = cfg.workDir;