Installing Fedora server version in a non standard location

Need help? Post your questions here.

Moderator: moderators

Installing Fedora server version in a non standard location

Postby stueyboy » Wed Jan 19, 2011 4:24 pm

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
stueyboy
 
Posts: 46
Joined: Wed Sep 01, 2010 8:58 am

Postby stozher » Wed Jan 19, 2011 5:11 pm

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!
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby stueyboy » Wed Jan 19, 2011 7:39 pm

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?
stueyboy
 
Posts: 46
Joined: Wed Sep 01, 2010 8:58 am

Postby stozher » Wed Jan 19, 2011 8:26 pm

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
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests