Fixed cups::client for OpenBSD 4.9 and newer.

This commit is contained in:
Timo Mkinen 2012-03-12 11:29:15 +02:00
parent 706c81645a
commit ed93dec665

View file

@ -21,12 +21,15 @@ class cups::client {
case $operatingsystem {
openbsd: {
exec { "cups-enable":
command => "echo y | cups-enable",
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
user => root,
exec { "cups-enable":
command => $operatingsystemrelease ? {
/4\.[1-8]/ => "echo y | cups-enable",
default => "sh -c '. /etc/rc.d/cupsd check ; rc_pre'",
},
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
user => "root",
creates => "/usr/bin/lpr.pre-cups",
require => Package["cups"],
require => Package["cups"],
}
}
}