Page 1 of 1
Installing Fedora server version in a non standard location

Posted:
Wed Jan 19, 2011 4:24 pm
by stueyboy
Quick question: I have moved my subsonic install to a non-standard location. In fedora, it defaults to /var/subsonic for install. If I want to upgrade the version, any ideas how I do it without it reverting tothe default location?
My first thought was to edit the SUBSONIC_HOME location in the new subsonic.sh then repackage it up and install as normal. Can anyone confirm or deny that this is a good idea?
Ta

Posted:
Wed Jan 19, 2011 5:11 pm
by stozher
My server location is a '/srv/subsonic'. I just stop server, upgrade package, stop new server and move folder '/var/subsonic/jetty/????' to my location.
Backup '/etc/default/subsonic' and '/usr/share/subsonic/subsonic.sh'. Also a good idea is to backup '/srv/subsonic/db' and '/srv/subsonic/subsonic.properties'.
Clean my server from old folders and files. I remove '/srv/subsonic/jetty/????/jsp' - this is a Jetty cache. Remove '/srv/subsonic/lucene', '/srv/subsonic/thumbs' and 'subsonic??.index' - this file recreated after start of server.
Compare old '/etc/default/subsonic' and '/usr/share/subsonic/subsonic.sh' with new...
Start new server!

Posted:
Wed Jan 19, 2011 7:39 pm
by stueyboy
Thanks for that. That would be what I woudl do anyway. I was just wondering if you can avoid it by editing one of the package files before upgrading.
I assume that you also change the location in the new subsonic.sh?

Posted:
Wed Jan 19, 2011 8:26 pm
by stozher
I don't change location of subsonic.sh... Just edit this file for my needs. Default daemon options is included in /etc/default/subsonic and overwrite options from subsonic.sh (last file is for user desktop start of server).
I only move server from /var/subsonic to /srv/subsonic.
/usr/share/subsonic/subsonic.war is a zip archive with default files for /var/subsonic/jetty/???/webapp