forked from ant-media/Ant-Media-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redeploy.sh
executable file
·48 lines (29 loc) · 899 Bytes
/
redeploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
mvn clean install -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dgpg.skip=true
OUT=$?
if [ $OUT -ne 0 ]; then
exit $OUT
fi
ANT_MEDIA_SERVER_DIR=~/softwares/ant-media-server
ANT_MEDIA_SERVER_JAR=./target/ant-media-server-server.jar
ANT_MEDIA_SERVER_SERVICE_JAR=./target/ant-media-server-service.jar
SRC_CONF_DIR=./src/main/server/conf/
#copy red5 jar from target dir to red5 dir
cp $ANT_MEDIA_SERVER_JAR $ANT_MEDIA_SERVER_DIR/ant-media-server.jar
cp $ANT_MEDIA_SERVER_SERVICE_JAR $ANT_MEDIA_SERVER_DIR/ant-media-server-service.jar
OUT=$?
if [ $OUT -ne 0 ]; then
echo "Cannot copy ant-media-server.jar"
exit $OUT
fi
cp -rf $SRC_CONF_DIR $ANT_MEDIA_SERVER_DIR/conf/
OUT=$?
if [ $OUT -ne 0 ]; then
exit $OUT
fi
#go to ant media server dir
cd $ANT_MEDIA_SERVER_DIR
#shutdown ant media server
./shutdown.sh
#start ant media server
./start-debug.sh