Store logs in /data too

This commit is contained in:
Zef Hemel 2013-11-08 12:00:56 +01:00
parent e89a6588c3
commit 3d820187a9

View File

@ -9,6 +9,7 @@ let
mysqlDataPath = "/data/mysql";
wordpressUploads = "/data/uploads";
apacheLogs = "/data/log";
# Our bare-bones wp-config.php file using the above settings
wordpressConfig = pkgs.writeText "wp-config.php" ''
@ -89,6 +90,9 @@ in {
# We'll set the wordpress package as our document root
documentRoot = wordpress;
# Let's store our logs in the volume as well
logDir = apacheLogs;
# And enable the PHP5 apache module
extraModules = [ { name = "php5"; path = "${pkgs.php}/modules/libphp5.so"; } ];