#!/bin/sh

#
# Configuration reset script for fusion
#

reset() {
    # Clean up all data
    find  /var/lib/fusion/data -mindepth 1 -maxdepth 1 -print0 | \
	xargs -0r rm -rf --
    # Remove the fusion auto redirection
    rm -f /etc/apache/conf.d/30-fusion-redirect.conf
}

#
# Main
#

case "$1" in
    reset)
        reset
    ;;
    *)
        echo "Usage $0 {reset}" >&2
	exit 1
    ;;
esac
