diff -Nur --no-dereference madsonic-6.2.9092.old/root/etc/sysconfig/madsonic madsonic-6.2.9092/root/etc/sysconfig/madsonic --- madsonic-6.2.9092.old/root/etc/sysconfig/madsonic 2022-01-26 10:57:08.000000000 -0500 +++ madsonic-6.2.9092/root/etc/sysconfig/madsonic 2022-07-23 16:39:49.208000000 -0400 @@ -24,3 +24,21 @@ # the music directories, otherwise changing album art and tags will fail. MADSONIC_USER=root + +###for madsonic.service +MADSONIC_HOME=/var/madsonic +MADSONIC_HOST=0.0.0.0 +MADSONIC_PORT=4041 +MADSONIC_HTTPS_PORT=0 +MADSONIC_CONTEXT_PATH=/madsonic +MADSONIC_MAX_MEMORY=350 +MADSONIC_DEFAULT_MUSIC_FOLDER=/var/media +MADSONIC_DEFAULT_UPLOAD_FOLDER=/var/media/incoming +MADSONIC_DEFAULT_PODCAST_FOLDER=/var/media/podcast +MADSONIC_DEFAULT_PLAYLIST_IMPORT_FOLDER=/var/media/playlists/import +MADSONIC_DEFAULT_PLAYLIST_EXPORT_FOLDER=/var/media/playlists/export +MADSONIC_DEFAULT_PLAYLIST_BACKUP_FOLDER=/var/media/playlists/backup +MADSONIC_DEFAULT_TRANSCODE_FOLDER= +MADSONIC_DEFAULT_TIMEZONE=EDT +MADSONIC_GZIP=true +MADSONIC_TEST=false 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 --- madsonic-6.2.9092.old/root/usr/share/madsonic/madsonic.sh 2022-01-26 10:57:08.000000000 -0500 +++ madsonic-6.2.9092/root/usr/share/madsonic/madsonic.sh 2022-07-23 03:00:12.309000000 -0400 @@ -24,6 +24,7 @@ MADSONIC_PIDFILE= MADSONIC_UPDATE=true MADSONIC_GZIP= +MADSONIC_TEST=true MADSONIC_DB= quiet=0 @@ -68,6 +69,7 @@ echo " --update=VALUE Configure Madsonic to look in folder /update for updates. Default 'true'" echo " --gzip=VALUE Configure Madsonic to use Gzip compression. Default 'true'" echo " --quiet Don't print anything to standard out. Default false." + echo " --test=VALUE Refer to local server for registering. Default true" exit 1 } @@ -134,6 +136,9 @@ --db=?*) MADSONIC_DB=${1#--db=} ;; + --test=?*) + MADSONIC_TEST="true" + ;; --quiet) quiet=1 ;; @@ -179,6 +184,7 @@ -Dmadsonic.gzip=${MADSONIC_GZIP} \ -Dmadsonic.db="${MADSONIC_DB}" \ -Djava.awt.headless=true \ + -Dmadsonic.test="${MADSONIC_TEST}"\ -jar madsonic-booter.jar > ${LOG} 2>&1 & # Write pid to pidfile if it is defined.