Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
AU: 1 updated - sonarr
Browse files Browse the repository at this point in the history
  • Loading branch information
JourneyOver committed Jul 3, 2019
1 parent a6bf6be commit 1e60088
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 20 deletions.
5 changes: 0 additions & 5 deletions automatic/sonarr/README.md
Expand Up @@ -24,9 +24,4 @@ Sonarr (formerly NzbDrone) is a PVR for Usenet and BitTorrent users. It can moni

## Notes

This is the pre-release versions of Sonarr V3 otherwise known as Phantom.

- Sonarr v2 migration
- Sonarr v3 will automatically convert the existing Sonarr v2 installation. Sonarr v2 stored it's database in `C:\ProgramData\NzbDrone`, which will be automatically converted to `C:\ProgramData\Sonarr`. It's advisable to make a backup of the v2 data first.

Installs as a service, to get to Sonarr open browser and go [here](http://localhost:8989/) or go to http://<your-ip>:8989/
4 changes: 2 additions & 2 deletions automatic/sonarr/legal/VERIFICATION.txt
Expand Up @@ -9,14 +9,14 @@ and can be verified by doing the following:

1. Download the following:

url: <http://download.sonarr.tv/v3/phantom-develop/3.0.1.526/Sonarr.phantom-develop.3.0.1.526.windows.exe>
url: <https://download.sonarr.tv/v2/develop/latest/NzbDrone.develop.exe>

2. You can obtain the checksum using one of the following methods:
- Use powershell function 'Get-FileHash'
- Use Chocolatey utility 'checksum.exe'

checksum type: sha256
checksum: AB5391D53AB1ED0371416174C434F53CC5E03214FA1340139E7746932FDD839B
checksum: 95898EB76E56940EF1E7FC9909E69794011DACC1A90674AF84B13ECC9CE2E50D

Using AU:

Expand Down
4 changes: 2 additions & 2 deletions automatic/sonarr/sonarr.json
@@ -1,5 +1,5 @@
{
"phantom": "3.0.1.526-phantom",
"beta": "2.0.0.5321-beta",
"phantom": "3.0.1.527-phantom",
"beta": "2.0.0.5337-beta",
"stable": "2.0.0.5322"
}
9 changes: 2 additions & 7 deletions automatic/sonarr/sonarr.nuspec
Expand Up @@ -4,7 +4,7 @@
<metadata>
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
<id>sonarr</id>
<version>3.0.1.526-phantom</version>
<version>2.0.0.5337-beta</version>
<packageSourceUrl>https://github.com/JourneyOver/chocolatey-packages/tree/master/automatic/sonarr</packageSourceUrl>
<owners>JourneyOver, dtgm</owners>
<title>Sonarr</title>
Expand Down Expand Up @@ -44,11 +44,6 @@
## Notes
This is the pre-release versions of Sonarr V3 otherwise known as Phantom.
- Sonarr v2 migration
- Sonarr v3 will automatically convert the existing Sonarr v2 installation. Sonarr v2 stored it's database in `C:\ProgramData\NzbDrone`, which will be automatically converted to `C:\ProgramData\Sonarr`. It's advisable to make a backup of the v2 data first.
Installs as a service, to get to Sonarr open browser and go [here](http://localhost:8989/) or go to http://<your-ip>:8989/
]]></description>
<releaseNotes>
Expand All @@ -58,7 +53,7 @@ Installs as a service, to get to Sonarr open browser and go [here](http://localh
#### Package
* Automatically built and uploaded by [JourneyOver](https://chocolatey.org/profiles/JourneyOver)
* If you have any requests or issues with this package please make an issue [here](https://github.com/JourneyOver/chocolatey-packages) instead of "Contact Maintainers"</releaseNotes>
<dependencies><dependency id="dotnet4.6.1" version="4.6.01055.20170308" /></dependencies>
<dependencies></dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
Expand Down
2 changes: 1 addition & 1 deletion automatic/sonarr/tools/chocolateyBeforeModify.ps1
@@ -1,5 +1,5 @@
# Stop Sonarr service before upgrade/uninstall if running
$service = 'Sonarr'
$service = 'NzbDrone'
if (Get-Service "$service" -ErrorAction SilentlyContinue) {
$running = Get-Service $service
if ($running.Status -eq "Running") {
Expand Down
2 changes: 1 addition & 1 deletion automatic/sonarr/tools/chocolateyInstall.ps1
Expand Up @@ -19,7 +19,7 @@ Install-ChocolateyInstallPackage @packageArgs
Remove-Item $toolsDir\*.exe -ea 0 -Force

# Start service if it's not running
$service = 'Sonarr'
$service = 'NzbDrone'
if (Get-Service "$service" -ErrorAction SilentlyContinue) {
$running = Get-Service $service
if ($running.Status -eq "Running") {
Expand Down
4 changes: 2 additions & 2 deletions automatic/sonarr/tools/chocolateyUninstall.ps1
Expand Up @@ -17,10 +17,10 @@ $packageArgs = @{
Uninstall-ChocolateyPackage @packageArgs

#remove Sonarr folder that gets left behind
$fexist = Test-Path "${env:ProgramData}\Sonarr"
$fexist = Test-Path "${env:ProgramData}\NzbDrone"
if ($fexist) {
Write-Host "Removing Sonarr Folder that's left behind"
Remove-Item "${env:ProgramData}\Sonarr" -Recurse -Force
Remove-Item "${env:ProgramData}\NzbDrone" -Recurse -Force
} else {
Write-Host "Sonarr Folder not found"
}

0 comments on commit 1e60088

Please sign in to comment.