wiki: Skip non-files when grepping for collab user

Moin 1.9.8 creates cache in userdir and egrep on Ubuntu 14.04 returns
error if grepping directories.
This commit is contained in:
Ossi Salmi 2014-11-14 10:59:23 +02:00
parent f49eb1710a
commit 14d0b375d4

View file

@ -403,7 +403,7 @@ class wiki::collab {
cwd => "/", cwd => "/",
user => "collab", user => "collab",
group => "collab", group => "collab",
unless => "egrep '^name=collab$' /srv/wikis/collab/user/*", unless => "egrep -D skip -d skip '^name=collab$' /srv/wikis/collab/user/*",
require => Exec["collab-create collab collab"], require => Exec["collab-create collab collab"],
before => Cron["collab-htaccess"], before => Cron["collab-htaccess"],
} }