git-remote-mediawiki: allow stop/start-ing the test server
Previously, the user had to launch a complete re-install after a lighttpd stop (e.g. a reboot). Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
779792a5f2
commit
1c4ea83902
@ -289,7 +289,6 @@ start_lighttpd () {
|
||||
# Kill daemon lighttpd and removes files and folders associated.
|
||||
stop_lighttpd () {
|
||||
test -f "$WEB_TMP/pid" && kill $(cat "$WEB_TMP/pid")
|
||||
rm -rf "$WEB"
|
||||
}
|
||||
|
||||
# Create the SQLite database of the MediaWiki. If the database file already
|
||||
@ -415,6 +414,7 @@ wiki_reset () {
|
||||
wiki_delete () {
|
||||
if test $LIGHTTPD = "true"; then
|
||||
stop_lighttpd
|
||||
rm -fr "$WEB"
|
||||
else
|
||||
# Delete the wiki's directory.
|
||||
rm -rf "$WIKI_DIR_INST/$WIKI_DIR_NAME" ||
|
||||
|
Reference in New Issue
Block a user