Masato Taruishi
taru****@users*****
2004年 11月 1日 (月) 11:54:18 JST
=================================================================== RCS file: projects/apache/update-apache,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- projects/apache/update-apache 2004/10/31 14:15:14 1.1 +++ projects/apache/update-apache 2004/11/01 02:54:18 1.2 @@ -26,19 +26,32 @@ id="APACHE" . $SHAREDIR/plugin +configure_debian() { + apache-modconf apache enable mod_vhost_alias +} + +remove_debian() { + apache-modconf apache disable mod_vhost_alias +} + + sanity() { : } configure() { add_startmark "##" "$id" > $tmp - $SHAREDIR/sedwrap < "$APACHE_VHOSTIN" >> $tmp + if test -e "$APACHE_VHOSTIN"; then + $SHAREDIR/sedwrap < "$APACHE_VHOSTIN" >> $tmp + fi add_endmark "##" "$id" >> $tmp add_end_vaconf "$APACHE_HTTPDCONF" "$tmp" "$id" + configure_debian } remove() { strip_vaconf "$APACHE_HTTPDCONF" "$id" + remove_debian } update "$1"