From de6cf786f39412e2f9f83f29fdb20225bb62796d Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Mon, 23 Mar 2009 14:12:39 +0100 Subject: [PATCH] create log and data dirs --- install.sh | 6 +++++- world/net/usercmd.i | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index eec2df8..19dc788 100755 --- a/install.sh +++ b/install.sh @@ -1077,7 +1077,11 @@ then echo "Creating $BASE_DIR..." if mkdir -m $BASE_PERM -p $BASE_DIR 2> /dev/null then - : + mkdir -m $BASE_PERM -p $LOG_DIR 2> /dev/null + mkdir -m $BASE_PERM -p $LOG_DIR/place 2> /dev/null + mkdir -m $BASE_PERM -p $DATA_DIR 2> /dev/null + mkdir -m $BASE_PERM -p $DATA_DIR/person 2> /dev/null + mkdir -m $BASE_PERM -p $DATA_DIR/place 2> /dev/null else if test "x$userid" = "xroot" then diff --git a/world/net/usercmd.i b/world/net/usercmd.i index 6249eec..fd5e22a 100644 --- a/world/net/usercmd.i +++ b/world/net/usercmd.i @@ -1771,6 +1771,9 @@ case "_unlink": unlink(vars["_service"]); return 1; case "_exit": + // so this is some kind of ugly hack not to be used.. huh? + announce(AVAILABILITY_OFFLINE); + // fall thru case "_quit": // bye(vars["_reason"]); quit();