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

This commit is contained in:
Nikolay Amiantov 2016-03-15 21:43:39 +03:00
parent ba3153ee08
commit 851af5e888
1 changed files with 3 additions and 1 deletions

View File

@ -311,7 +311,9 @@ in
[ ! -e "/var/lib/cups/$i" ] && ln -s "${rootdir}/etc/cups/$i" "/var/lib/cups/$i"
done
${optionalString cfg.gutenprint ''
${gutenprint}/bin/cups-genppdupdate -p /etc/cups/ppd
if [ -d /var/lib/cups/ppd ]; then
${gutenprint}/bin/cups-genppdupdate -p /var/lib/cups/ppd
fi
''}
'';
};