> > if [ `grep PhotoShelf.conf /etc/httpd/conf/httpd.conf | wc -l` = 0 ];

> Why not:
> 
> if (grep -q PhotoShelf.conf /etc/httpd/conf/httpd.conf);
> then
> ..
> fi

Yup... good one!!

That would check for the positive (there is a "PhotoShelf.conf" in
httpd.conf), but how to do the negative (there isn't a
"PhotoShelf.conf")? That one is needed with the %pre.

Stefan

Reply via email to