-
Notifications
You must be signed in to change notification settings - Fork 66
/
start_inmoov.sh
executable file
·49 lines (49 loc) · 1.54 KB
/
start_inmoov.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
49
#!/bin/bash
cd "$(dirname "$0")"
echo "------------------------------------------------------"
echo " INMOOV LAUNCHER"
echo "------------------------------------------------------"
echo "------------------------------------------------------"
echo "LOG CLEAN UP to free space disk and send clean noworky"
echo "------------------------------------------------------"
rm myrobotlab.log.1
mv myrobotlab.log myrobotlab.log.1
sleep 1
echo "."
echo "------------------------------------------------------"
echo "UPDATE MRL INSTALLATION"
echo "This may take a few minutes"
echo "------------------------------------------------------"
sleep 1
mv ./myrobotlab-*.jar ./myrobotlab.jar
if [ -f ./mrlNeedReinstall ]; then
rm -r haarcascades
rm -r hogcascades
rm -r lbpcascades
rm -r libraries
rm -r pythonModules
rm -r resource
rm -r tessdata
rm -r InMoov\chatbot\bots\de\aimlif
rm -r InMoov\chatbot\bots\es\aimlif
rm -r InMoov\chatbot\bots\en\aimlif
rm -r InMoov\chatbot\bots\fr\aimlif
rm -r InMoov\chatbot\bots\hi\aimlif
rm -r InMoov\chatbot\bots\nl\aimlif
rm -r InMoov\chatbot\bots\ru\aimlif
rm ivychain.xml
rm myrobotlab.log
rm repo.json
rm mrlNeedReinstall
rm .myrobotlab/serviceData.json
fi
java -jar myrobotlab.jar -install
chmod +x ./start_inmoov.sh
echo "Done"
echo "------------------------------------------------------"
echo "START MRL & INMOOV"
echo "------------------------------------------------------"
clear
# start the inmoov script
java -jar myrobotlab.jar -service python Python -invoke python execFile ./InMoov/InMoov.py
chmod +x ./start_inmoov.sh