commit | author | age | ||
294fcc | 1 | #!/bin/bash |
JK | 2 | |
3 | if [ -z "$JAVA_OPTS" ]; then | |
4 | JAVA_OPTS="-Xmx1024m" | |
5 | fi | |
6 | ||
7 | if [ ! -f /usr/lib/mfi/data/system.properties ]; then | |
8 | cp -Rf /usr/lib/mfi/data-orig/. /usr/lib/mfi/data/ | |
9 | fi | |
10 | ||
11 | if [ `id -u` -eq 0 ]; then | |
12 | chown -Rf mfi:mfi /usr/lib/mfi/data | |
13 | ||
14 | exec sudo -u mfi java $JAVA_OPTS -jar /usr/lib/mfi/lib/ace.jar start | |
15 | else | |
16 | exec java $JAVA_OPTS -jar /usr/lib/mfi/lib/ace.jar start | |
17 | fi |