From 84a37365c27c3027ab70b143a26aa3730b31c375 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 23 Sep 2011 14:41:22 +0000 Subject: [PATCH] modules/services/printing/cupsd.nix: ensure that /etc/cups exists before the daemon is run CUPS is really unhappy when /etc/cups doesn't exist, and without that directory it's going to mess up file permissions of /nix/store, the web front-end won't work, and probably all kinds of other stuff is broken that I didn't notice yet. :-( svn path=/nixos/trunk/; revision=29452 --- modules/services/printing/cupsd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/printing/cupsd.nix b/modules/services/printing/cupsd.nix index 2d611ad7278..e33e2245dbc 100644 --- a/modules/services/printing/cupsd.nix +++ b/modules/services/printing/cupsd.nix @@ -133,6 +133,7 @@ in preStart = '' + mkdir -m 0755 -p /etc/cups mkdir -m 0755 -p ${logDir} mkdir -m 0700 -p /var/cache/cups mkdir -m 0700 -p /var/spool/cups