diff -Nur smeserver-subsonic-4.8-old/createlinks smeserver-subsonic-4.8/createlinks --- smeserver-subsonic-4.8-old/createlinks 2013-10-26 20:03:47.000000000 -0400 +++ smeserver-subsonic-4.8/createlinks 2013-10-26 20:05:17.000000000 -0400 @@ -4,10 +4,8 @@ #################### # links to add - safe_symlink("/etc/e-smith/templates-default/template-begin-shell", "root/etc/e-smith/templates/usr/share/subsonic/subsonic.sh/template-begin"); # templates to expand - templates2events( "/usr/share/subsonic/subsonic.sh" , qw( conf-subsonic bootstrap-console-save post-upgrade)); templates2events( "/etc/sysconfig/subsonic" , qw( conf-subsonic bootstrap-console-save post-upgrade)); templates2events("/etc/httpd/conf/httpd.conf", "conf-subsonic"); diff -Nur smeserver-subsonic-4.8-old/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic smeserver-subsonic-4.8/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic --- smeserver-subsonic-4.8-old/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic 2013-10-26 20:03:47.000000000 -0400 +++ smeserver-subsonic-4.8/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic 2013-10-26 20:21:43.000000000 -0400 @@ -30,6 +30,16 @@ $OUT .= "--max-memory=$submem --context-path='$subpath'"; +$OUT .= " --home='$subhome'" unless $subhome eq "/var/subsonic"; +$OUT .= " --host='$subhost'" unless $subhost eq "0.0.0.0"; +$OUT .= " --port='$subport'" unless $subport == "4040"; +$OUT .= " --https-port='$subhttps_port'" unless $subhttps_port eq "0"; +$OUT .= " --pidfile='$subpid'" unless $subpid eq ""; +$OUT .= " --quiet" unless $subquiet eq "0"; +$OUT .= " --default-music-folder='$submusic'" unless $submusic eq "/var/music"; +$OUT .= " --default-podcast-folder='$subpod'" unless $subpod eq "/var/music/Podcast"; +$OUT .= " --default-playlist-folder='$subplay'" unless $subplay eq "/var/music/playlists"; + }" @@ -38,5 +48,5 @@ # below 1024. Also make sure to grant the user write permissions in # the music directories, otherwise changing album art and tags will fail. -SUBSONIC_USER=root +SUBSONIC_USER=subsonic