Skip to content

Commit

Permalink
Create log directory if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed Jun 2, 2021
1 parent dfdb9e3 commit 117851d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/server/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,15 @@ fi

export RED5_CLASSPATH="${RED5_HOME}/ant-media-server-service.jar${P}${RED5_HOME}/conf${P}${CLASSPATH}"

# create log directory
mkdir log 2>/dev/null
# create log directory if not exist
if [ ! -d "/var/log/antmedia" ]
then
mkdir /var/log/antmedia
fi

ln -sf /var/log/antmedia ${RED5_HOME}/log
check


# start Ant Media Server

Expand Down

0 comments on commit 117851d

Please sign in to comment.