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 15, 2019
1 parent f03743c commit 7690685
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
5 changes: 5 additions & 0 deletions automatic/sonarr/README.md
Expand Up @@ -24,4 +24,9 @@ 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: <https://download.sonarr.tv/v2/develop/latest/NzbDrone.develop.exe>
url: <http://download.sonarr.tv/v3/phantom-develop/3.0.2.529/Sonarr.phantom-develop.3.0.2.529.windows.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: 95898EB76E56940EF1E7FC9909E69794011DACC1A90674AF84B13ECC9CE2E50D
checksum: 40F5D5F07323C0D0C71BCCB533076B8D0925F012B1B6D7A5D2C35CE401BDAF95

Using AU:

Expand Down
2 changes: 1 addition & 1 deletion automatic/sonarr/sonarr.json
@@ -1,5 +1,5 @@
{
"phantom": "3.0.1.527-phantom",
"phantom": "3.0.2.529-phantom",
"beta": "2.0.0.5337-beta",
"stable": "2.0.0.5322"
}
9 changes: 7 additions & 2 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>2.0.0.5337-beta</version>
<version>3.0.2.529-phantom</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,6 +44,11 @@
## 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 @@ -53,7 +58,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></dependencies>
<dependencies><dependency id="dotnet4.6.1" version="4.6.01055.20170308" /></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 = 'NzbDrone'
$service = 'Sonarr'
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 = 'NzbDrone'
$service = 'Sonarr'
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}\NzbDrone"
$fexist = Test-Path "${env:ProgramData}\Sonarr"
if ($fexist) {
Write-Host "Removing Sonarr Folder that's left behind"
Remove-Item "${env:ProgramData}\NzbDrone" -Recurse -Force
Remove-Item "${env:ProgramData}\Sonarr" -Recurse -Force
} else {
Write-Host "Sonarr Folder not found"
}

0 comments on commit 7690685

Please sign in to comment.