From c750617b7a6aa039a165b9eebb75b4cdef336f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 16 Nov 2009 08:28:22 +0200 Subject: [PATCH] More robust test for cups-enable on OpenBSD. --- cups/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cups/manifests/init.pp b/cups/manifests/init.pp index 35c4478..2c16124 100644 --- a/cups/manifests/init.pp +++ b/cups/manifests/init.pp @@ -25,7 +25,7 @@ class cups::client { command => "echo y | cups-enable", path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin", user => root, - unless => "readlink /usr/bin/lpr | egrep '^/usr/local/bin/lpr$'", + creates => "/usr/bin/lpr.pre-cups", require => Package["cups"], } }