On Wed, 7 Feb 2001, Justin Funke wrote:

> %post
> /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
> /sbin/e-smith/expand-template /etc/httpd/conf/php.ini
> service httpd restart
> 
> %postun
> /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
> /sbin/e-smith/expand-template /etc/httpd/conf/php.ini
> service httpd restart

The first is to get things set up correctly after installing the RPM -
configure PHP, configure apache, restart apache. The second is to get
things set up correctly if you remove the RPM; configure apache, configure
PHP (not really necessary, any more, is it?), then restart apache.

%pre and %post scripts are further complicated by the strange things that
happen when you upgrade an RPM (the new one is installed before the old
one is removed). And complicated even further when they are run while the
installer is running from bootable CD or floppy, when there isn't even a
web server running (until you restart it from the %post script).

In short, a real can of worms.

At this stage just ignore the %pre, %post, %postun, etc, and recommend the
configuration steps in your README.

-- 

  Charlie Brady                         [EMAIL PROTECTED]
  http://www.e-smith.org (development)  http://www.e-smith.com (corporate)
  Phone: +1 (613) 368 4376 or 564 8000  Fax: +1 (613) 564 7739
  e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada


Reply via email to