#! /bin/sh #---------------------------------------------------------------------------- # /var/install/include/apache2-add-config - Apache2 # # Copyright (c) 2009-2022 the eisfair team, team(at)eisfair(dot)org # # Creation: ??.??.200? ?? # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /var/install/include/eislib clrhome clrhome mecho --info "Edit Apache2 configuration" echo configfile='/etc/apache2/AddParams.conf' if [ -z $EDITOR ] then joe $configfile else $EDITOR $configfile fi if /var/install/bin/ask "Activate Apache2 configuration now" then echo "Creating Apache2 configuration ..." . /etc/config.d/apache2 if [ "$START_APACHE2" = "yes" ] then /usr/sbin/service stop apache2 sleep 3 /usr/sbin/service start apache2 else mecho --warn "Not (re)starting Apache2, set START_APACHE2='yes'" fi fi /var/install/bin/anykey