| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.27 2004/07/11 20:20:25 stuart Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.28 2004/07/17 15:21:01 stuart Exp $ |
| 4 | # |
4 | # |
| 5 | # eclass/webapp.eclass |
5 | # eclass/webapp.eclass |
| 6 | # Eclass for installing applications to run under a web server |
6 | # Eclass for installing applications to run under a web server |
| 7 | # |
7 | # |
| 8 | # Part of the implementation of GLEP #11 |
8 | # Part of the implementation of GLEP #11 |
| … | |
… | |
| 493 | # the user is relying on portage to do the magical thing for it |
493 | # the user is relying on portage to do the magical thing for it |
| 494 | |
494 | |
| 495 | if [ "$IS_UPGRADE" = "1" ] ; then |
495 | if [ "$IS_UPGRADE" = "1" ] ; then |
| 496 | einfo "Removing old version $REMOVE_PKG" |
496 | einfo "Removing old version $REMOVE_PKG" |
| 497 | |
497 | |
| 498 | emerge -C "$CATEGORY/$REMOVE_PKG" |
498 | emerge -C "$REMOVE_PKG" |
| 499 | fi |
499 | fi |
| 500 | else |
500 | else |
| 501 | # vhosts flag is on |
501 | # vhosts flag is on |
| 502 | # |
502 | # |
| 503 | # let's tell the administrator what to do next |
503 | # let's tell the administrator what to do next |