mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 19:41:00 +00:00
create log and data dirs
This commit is contained in:
parent
b29dca089a
commit
de6cf786f3
@ -1077,7 +1077,11 @@ then
|
|||||||
echo "Creating $BASE_DIR..."
|
echo "Creating $BASE_DIR..."
|
||||||
if mkdir -m $BASE_PERM -p $BASE_DIR 2> /dev/null
|
if mkdir -m $BASE_PERM -p $BASE_DIR 2> /dev/null
|
||||||
then
|
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
|
else
|
||||||
if test "x$userid" = "xroot"
|
if test "x$userid" = "xroot"
|
||||||
then
|
then
|
||||||
|
@ -1771,6 +1771,9 @@ case "_unlink":
|
|||||||
unlink(vars["_service"]);
|
unlink(vars["_service"]);
|
||||||
return 1;
|
return 1;
|
||||||
case "_exit":
|
case "_exit":
|
||||||
|
// so this is some kind of ugly hack not to be used.. huh?
|
||||||
|
announce(AVAILABILITY_OFFLINE);
|
||||||
|
// fall thru
|
||||||
case "_quit":
|
case "_quit":
|
||||||
// bye(vars["_reason"]);
|
// bye(vars["_reason"]);
|
||||||
quit();
|
quit();
|
||||||
|
Loading…
Reference in New Issue
Block a user