diff options
author | Bas van Dijk <v.dijk.bas@gmail.com> | 2017-03-14 16:11:51 +0100 |
---|---|---|
committer | Joachim Schiele <js@lastlog.de> | 2017-03-14 16:11:51 +0100 |
commit | 308c09d41f309e5055e45c66c07454581945d458 (patch) | |
tree | fae5732f069338de5d7f4f6a3b722d05a038f478 /nixos/tests | |
parent | e916236130c98c5de723ee742f54b1c22ad6230e (diff) | |
download | nixpkgs-308c09d41f309e5055e45c66c07454581945d458.tar nixpkgs-308c09d41f309e5055e45c66c07454581945d458.tar.gz nixpkgs-308c09d41f309e5055e45c66c07454581945d458.tar.bz2 nixpkgs-308c09d41f309e5055e45c66c07454581945d458.tar.lz nixpkgs-308c09d41f309e5055e45c66c07454581945d458.tar.xz nixpkgs-308c09d41f309e5055e45c66c07454581945d458.tar.zst nixpkgs-308c09d41f309e5055e45c66c07454581945d458.zip |
wordpress: security upgrade: 4.7.2 -> 4.7.3 & other improvements (#23837)
* Moved the wordpress sources derivation to the attribute pkgs.wordpress. This makes it easier to override. * Also introduce the `package` option for the wordpress virtual host config which defaults to pkgs.wordpress. * Also fixed the test in nixos/tests/wordpress.nix.
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/wordpress.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/nixos/tests/wordpress.nix b/nixos/tests/wordpress.nix index afee1f7f6dd..c51306a8c7a 100644 --- a/nixos/tests/wordpress.nix +++ b/nixos/tests/wordpress.nix @@ -10,14 +10,10 @@ import ./make-test.nix ({ pkgs, ... }: { web = { config, pkgs, ... }: { - services.mysql.enable = true; - services.mysql.package = pkgs.mysql; - services.mysql.initialScript = pkgs.writeText "start.sql" '' - CREATE DATABASE wordpress; - CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'wordpress'; - GRANT ALL on wordpress.* TO 'wordpress'@'localhost'; - ''; - + services.mysql = { + enable = true; + package = pkgs.mysql; + }; services.httpd = { enable = true; logPerVirtualHost = true; |