summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2022-11-07 10:04:01 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2022-11-07 10:08:01 +0100
commitb40b8b92e200373f85854d197bc3d1687c43d38f (patch)
tree568236417029dff62dd4491623473f96813dd0b0
parentb8a57555e58b438459d86d24d4dccba1ca55b33d (diff)
downloadnixpkgs-b40b8b92e200373f85854d197bc3d1687c43d38f.tar
nixpkgs-b40b8b92e200373f85854d197bc3d1687c43d38f.tar.gz
nixpkgs-b40b8b92e200373f85854d197bc3d1687c43d38f.tar.bz2
nixpkgs-b40b8b92e200373f85854d197bc3d1687c43d38f.tar.lz
nixpkgs-b40b8b92e200373f85854d197bc3d1687c43d38f.tar.xz
nixpkgs-b40b8b92e200373f85854d197bc3d1687c43d38f.tar.zst
nixpkgs-b40b8b92e200373f85854d197bc3d1687c43d38f.zip
nixos/wordpress: ensure that fonts already exists
Not a big deal in most of the cases because wordpress ensures that this
directory exists on its own, but with our twentig customizations that's
actually causing issues.

(cherry picked from commit 3285342bfe5f401dda84c13c834e73154928a61c)
-rw-r--r--nixos/modules/services/web-apps/wordpress.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/wordpress.nix b/nixos/modules/services/web-apps/wordpress.nix
index 660f1b2d7f8..43a6d7e75dc 100644
--- a/nixos/modules/services/web-apps/wordpress.nix
+++ b/nixos/modules/services/web-apps/wordpress.nix
@@ -409,6 +409,8 @@ in
       "d '${stateDir hostName}' 0750 ${user} ${webserver.group} - -"
       "d '${cfg.uploadsDir}' 0750 ${user} ${webserver.group} - -"
       "Z '${cfg.uploadsDir}' 0750 ${user} ${webserver.group} - -"
+      "d '${cfg.fontsDir}' 0750 ${user} ${webserver.group} - -"
+      "Z '${cfg.fontsDir}' 0750 ${user} ${webserver.group} - -"
     ]) eachSite);
 
     systemd.services = mkMerge [