diff options
author | Daniel Poelzleithner <poelzleithner@b1-systems.de> | 2022-05-16 11:10:16 +0200 |
---|---|---|
committer | ehmry <ehmry@posteo.net> | 2022-06-07 09:06:56 -0500 |
commit | e78c2d05da0cd52fecc82db63a3002ae76859fce (patch) | |
tree | f137b8f24c169fdc718cbb494d1c4a17e6af9ec3 /nixos/modules | |
parent | 92e2442544007ab5c341ee7ad31282344f60d2cc (diff) |
hedgedoc: ensure upload directory exists
Upload directory is not created when uploading, but will fail silently. Ensure the upload directory is created.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/web-apps/hedgedoc.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/hedgedoc.nix b/nixos/modules/services/web-apps/hedgedoc.nix index 13893cbf005af..22270609dbccb 100644 --- a/nixos/modules/services/web-apps/hedgedoc.nix +++ b/nixos/modules/services/web-apps/hedgedoc.nix @@ -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; |