Open zeta-00 opened 2 years ago
While not a convenient solution I did this:
patchedWordpress = pkgs.wordpress.overrideAttrs (old: {
installPhase = old.installPhase + ''
# Remove the default wordpress themes (to not get bothered about updates).
rm -rf $out/share/wordpress/wp-content/themes/twentytwenty
rm -rf $out/share/wordpress/wp-content/themes/twentytwentyone
rm -rf $out/share/wordpress/wp-content/themes/twentytwentytwo
# Remove default not used plugins (to not get bothered about updates).
rm -rf $out/share/wordpress/wp-content/plugins/akismet
rm -rf $out/share/wordpress/wp-content/plugins/hello.php
'';
});
services.wordpress.sites."yourwebsite.com".package = patchedWordpress;
The builtin plugins and themes will be removed in the upcoming NixOS release 23.05 and can be installed optionally
Issue description
Greetings,
I'm using the nixos services.wordpress module to host my website and it's going great, but, the issue that I'm having has to do with the built-in themes, plugins as well as wordpress itself.
Whenever I update wordpress and it's plugins, there's still red update icons that show up and message that wordpress and the built-in themes and plugins are out of date?
Steps to reproduce
Attempted to manually delete the built-in themes and plugins, and updated wordpress with nix, but, the red out of date notification still persists?
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.