#!/bin/bash # # 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. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA set -e # ----------- # INIT SCRIPT # ----------- #variables definition MOODLE_DIR="/etc/moodle" APACHE_FILE="apache.conf" APACHE_MOODLE_BRAINDAMAGE="$MOODLE_DIR/$APACHE_FILE" # #MOODLE_FILE="config.php" #CONFIG_PHP_MOODLE="$MOODLE_DIR/$MOODLE_FILE" # MOODLE_CONFDIR="moodle/conf" MOODLE_CONFFILE="$MOODLE_CONFDIR/$MOODLE_FILE" APACHE_USER="www-data" COMMENT_INIT="#--LLXCFG_INI--#" COMMENT_END="#--LLXCFG_END--#" MOODLE_SITE="http://moodle" INCLUDE_LLIUREX_CONF="Redirect /moodle ${MOODLE_SITE}" gen_apache_moodle_redirect(){ cat <