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 ehmry
parent 92e2442544
commit e78c2d05da

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;