#! /bin/sh # # Configure Loggerhead for FusionForge # Roland Mas PATH=/usr/share/gforge/bin:/usr/share/fusionforge/bin:$PATH source_path=`forge_get_config source_path` log_path=`forge_get_config log_path` data_path=`forge_get_config data_path` repos_path=$(forge_get_config repos_path scmbzr) web_host=$(forge_get_config web_host) url_prefix=$(forge_get_config url_prefix) set -e if [ `id -u` != 0 ] ; then echo "You must be root to run this, please enter passwd" exec su -c "$0 $1" fi configfile=~gforge/.bazaar/bazaar.conf cachedir=/var/cache/gforge/loggerhead case "$1" in configure) if [ ! -e $configfile ] ; then mkdir -p $(dirname $configfile) cat > $configfile <