about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2019-01-07 13:41:29 +0100
committerGitHub <noreply@github.com>2019-01-07 13:41:29 +0100
commit6ac10cd7648ad58fd139184d3012efb2887defc9 (patch)
treec1f7b3ab75f26bf189abd8fd3a9b5dc0c98cf7f2 /nixos/modules
parent289fe57eea6a2b3c9b5fa37b7c1cc6097e9466e0 (diff)
parent9d2c9157d77c2f183c1c5cee37dd625bf55183d7 (diff)
downloadnixlib-6ac10cd7648ad58fd139184d3012efb2887defc9.tar
nixlib-6ac10cd7648ad58fd139184d3012efb2887defc9.tar.gz
nixlib-6ac10cd7648ad58fd139184d3012efb2887defc9.tar.bz2
nixlib-6ac10cd7648ad58fd139184d3012efb2887defc9.tar.lz
nixlib-6ac10cd7648ad58fd139184d3012efb2887defc9.tar.xz
nixlib-6ac10cd7648ad58fd139184d3012efb2887defc9.tar.zst
nixlib-6ac10cd7648ad58fd139184d3012efb2887defc9.zip
Merge pull request #53399 from LumiGuide/feat-wordpress-copy-plugins
apache-httpd/wordpress: copy plugins and themes instead of symlinking
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/web-servers/apache-httpd/wordpress.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/web-servers/apache-httpd/wordpress.nix b/nixos/modules/services/web-servers/apache-httpd/wordpress.nix
index c810b914e258..c68bfd25f6a8 100644
--- a/nixos/modules/services/web-servers/apache-httpd/wordpress.nix
+++ b/nixos/modules/services/web-servers/apache-httpd/wordpress.nix
@@ -85,10 +85,10 @@ let
       # remove bundled themes(s) coming with wordpress
       rm -Rf $out/wp-content/themes/*
 
-      # symlink additional theme(s)
-      ${concatMapStrings (theme: "ln -s ${theme} $out/wp-content/themes/${theme.name}\n") config.themes}
-      # symlink additional plugin(s)
-      ${concatMapStrings (plugin: "ln -s ${plugin} $out/wp-content/plugins/${plugin.name}\n") (config.plugins) }
+      # copy additional theme(s)
+      ${concatMapStrings (theme: "cp -r ${theme} $out/wp-content/themes/${theme.name}\n") config.themes}
+      # copy additional plugin(s)
+      ${concatMapStrings (plugin: "cp -r ${plugin} $out/wp-content/plugins/${plugin.name}\n") (config.plugins) }
 
       # symlink additional translation(s)
       mkdir -p $out/wp-content/languages