Merge branch 'mk/show-s-no-extra-blank-line-for-merges'
[gitweb.git] / contrib / mw-to-git / t / install-wiki.sh
index c6d6fa3aefafa8f782be20b7919f2acfc7667a6f..c215213c4bfddb583fb3de0eb624e0cffdb8cc7c 100755 (executable)
@@ -15,11 +15,13 @@ fi
 
 . "$WIKI_TEST_DIR"/test-gitmw-lib.sh
 usage () {
-       echo "Usage: "
+       echo "usage: "
        echo "  ./install-wiki.sh <install | delete | --help>"
        echo "          install | -i :  Install a wiki on your computer."
        echo "          delete | -d : Delete the wiki and all its pages and "
        echo "                  content."
+       echo "          start  | -s : Start the previously configured lighttpd daemon"
+       echo "          stop        : Stop lighttpd daemon."
 }
 
 
@@ -33,6 +35,14 @@ case "$1" in
                wiki_delete
                exit 0
                ;;
+       "start" | "-s")
+               start_lighttpd
+               exit
+               ;;
+       "stop")
+               stop_lighttpd
+               exit
+               ;;
        "--help" | "-h")
                usage
                exit 0