Anyone successfully auto-updating on Ubuntu?

I recently began the process of installing NzbDrone on Ubuntu, which will ultimately replace my instance currently running on Windows 7. I have it installed following the recommended method on the website, as well as the recommended autostart (via upstart).

After browsing through this thread (http://forums.nzbdrone.com/discussion/2127/migrating-from-windows-server-to-headless-ubuntu-server-updating-nd), it seems as though the update process is by no means simple to deploy. Since I installed via apt-get, I believe that I’m going to be running into an issue with the install location (/opt) being writeable, amongst other issues.

So my question is, has anyone successfully got this working? If so, can you go through your setup? I think maybe I’d be better off not utilizing the apt-get install method, should I want NzbDrone to autoupdate itself, no? Or do I just stick with apt-get and update that way?

Thanks!

  1. Open terminal and run this command:

sudo chmod -R 757 /opt/NzbDrone/

this will change permissions of NzbDrone install directory and make it writable. Now updates will come through.

  1. Now you need to remove nzbdrone from apt sources:

sudo nano /etc/apt/sources.list

scroll down and delete this line:

deb http://update.nzbdrone.com/repos/apt/debian master main

Hit Ctrl+X, it will ask you about saving changes - type ‘Y’ and then hit Enter. Then you should update your sources:

sudo apt-get update

and that’s it.

Thank you, @FluffMe! Update worked on the first shot.

It’s still ok that I’m using the upstart autostart method, right? Even with the in-app updating?

It could cause issues if upstart restarts drone while its trying to update (you may end up with multiple instances attempting to run), instead of letting the update process do it, but if its working it should be fine.