commit | author | age | ||
66d7d1 | 1 | #!/bin/bash |
JK | 2 | |
3 | if [ -z "$JAVA_OPTS" ]; then | |
4 | JAVA_OPTS="-Xmx1024m" | |
5 | fi | |
6 | ||
41033e | 7 | if [ `id -u` -eq 0 ]; then |
JK | 8 | chown -Rf unifi:unifi /usr/lib/unifi/data |
66d7d1 | 9 | |
41033e | 10 | exec sudo -u unifi java $JAVA_OPTS -jar /usr/lib/unifi/lib/ace.jar start |
JK | 11 | else |
12 | exec java $JAVA_OPTS -jar /usr/lib/unifi/lib/ace.jar start | |
13 | fi |