Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

cups service: fix gutenprint update when there's no printers

(cherry picked from commit 851af5e8886dbedf3095006f9bfa5764db53b189)

+3 -1
+3 -1
nixos/modules/services/printing/cupsd.nix
··· 310 310 [ ! -e "/var/lib/cups/$i" ] && ln -s "${rootdir}/etc/cups/$i" "/var/lib/cups/$i" 311 311 done 312 312 ${optionalString cfg.gutenprint '' 313 - ${gutenprint}/bin/cups-genppdupdate -p /etc/cups/ppd 313 + if [ -d /var/lib/cups/ppd ]; then 314 + ${gutenprint}/bin/cups-genppdupdate -p /var/lib/cups/ppd 315 + fi 314 316 ''} 315 317 ''; 316 318 };