From f0f4ec4335fa69cce1bf769009cf19a440253644 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 13 May 2018 17:08:22 +0000
Subject: [PATCH] Add README

---
 run.sh |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..1f48ed6
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+if [ -z "$JAVA_OPTS" ]; then
+	JAVA_OPTS="-Xmx1024m"
+fi
+
+if [ ! -f /usr/lib/mfi/data/system.properties ]; then
+	cp -Rf /usr/lib/mfi/data-orig/. /usr/lib/mfi/data/
+fi
+
+if [ `id -u` -eq 0 ]; then
+	chown -Rf mfi:mfi /usr/lib/mfi/data
+
+	exec sudo -u mfi java $JAVA_OPTS -jar /usr/lib/mfi/lib/ace.jar start
+else
+	exec java $JAVA_OPTS -jar /usr/lib/mfi/lib/ace.jar start
+fi

--
Gitblit v1.9.1