1 |
diff -Nur --no-dereference madsonic-6.2.9092.old/root/usr/share/madsonic/madsonic.sh madsonic-6.2.9092/root/usr/share/madsonic/madsonic.sh |
2 |
--- madsonic-6.2.9092.old/root/usr/share/madsonic/madsonic.sh 2022-01-26 10:57:08.000000000 -0500 |
3 |
+++ madsonic-6.2.9092/root/usr/share/madsonic/madsonic.sh 2022-07-23 03:00:12.309000000 -0400 |
4 |
@@ -24,6 +24,7 @@ |
5 |
MADSONIC_PIDFILE= |
6 |
MADSONIC_UPDATE=true |
7 |
MADSONIC_GZIP= |
8 |
+MADSONIC_TEST=true |
9 |
MADSONIC_DB= |
10 |
quiet=0 |
11 |
|
12 |
@@ -68,6 +69,7 @@ |
13 |
echo " --update=VALUE Configure Madsonic to look in folder /update for updates. Default 'true'" |
14 |
echo " --gzip=VALUE Configure Madsonic to use Gzip compression. Default 'true'" |
15 |
echo " --quiet Don't print anything to standard out. Default false." |
16 |
+ echo " --test=VALUE Refer to local server for registering. Default true" |
17 |
exit 1 |
18 |
} |
19 |
|
20 |
@@ -134,6 +136,9 @@ |
21 |
--db=?*) |
22 |
MADSONIC_DB=${1#--db=} |
23 |
;; |
24 |
+ --test=?*) |
25 |
+ MADSONIC_TEST="true" |
26 |
+ ;; |
27 |
--quiet) |
28 |
quiet=1 |
29 |
;; |
30 |
@@ -179,6 +184,7 @@ |
31 |
-Dmadsonic.gzip=${MADSONIC_GZIP} \ |
32 |
-Dmadsonic.db="${MADSONIC_DB}" \ |
33 |
-Djava.awt.headless=true \ |
34 |
+ -Dmadsonic.test="${MADSONIC_TEST}"\ |
35 |
-jar madsonic-booter.jar > ${LOG} 2>&1 & |
36 |
|
37 |
# Write pid to pidfile if it is defined. |