--- madsonic.sh 2014-03-12 03:46:24.392650409 +0200 +++ /usr/bin/madsonic 2014-03-22 20:04:20.344149321 +0200 @@ -17,7 +17,7 @@ MADSONIC_DEFAULT_PODCAST_FOLDER=/var/media/Podcast MADSONIC_DEFAULT_PLAYLIST_IMPORT_FOLDER=/var/media/playlist-import MADSONIC_DEFAULT_PLAYLIST_EXPORT_FOLDER=/var/media/playlist-export - +MADSONIC_DEFAULT_TIMEZONE=Europe/Vilnius quiet=0 usage() { @@ -51,6 +51,8 @@ echo " only has effect the first time Madsonic is started. Default '/var/media/playlist-import'" echo " --default-playlist-export-folder=DIR Configure Madsonic to use this folder for playlist export. This option " echo " only has effect the first time Madsonic is started. Default '/var/media/playlist-export'" + echo " --timezone=Europe/City Configure Madsonic to use other timezone for time correction in Madsonic" + echo " Default zone is 'Europe/Vilnius'" exit 1 } @@ -102,6 +104,9 @@ --default-playlist-export-folder=?*) MADSONIC_DEFAULT_PLAYLIST_EXPORT_FOLDER=${1#--default-playlist-export-folder=} ;; + --timezone=?*) + MADSONIC_DEFAULT_TIMEZONE=${1#--timezone=} + ;; *) usage ;; @@ -138,6 +143,7 @@ -Dsubsonic.defaultPlaylistFolder=${MADSONIC_DEFAULT_PLAYLIST_IMPORT_FOLDER} \ -Dsubsonic.defaultPlaylistExportFolder=${MADSONIC_DEFAULT_PLAYLIST_EXPORT_FOLDER} \ -Djava.awt.headless=true \ + -Duser.timezone=${MADSONIC_DEFAULT_TIMEZONE} \ -verbose:gc \ -jar madsonic-booter.jar > ${LOG} 2>&1 &