-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e8a595
commit 07d7805
Showing
10 changed files
with
95 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ Vagrantfile | |
**/.cache | ||
nzbhydra.pid | ||
/buildWindowsDist.py | ||
/makeGithubRelease.py | ||
/pushToMasterAndRelease.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@echo off | ||
|
||
net session >nul 2>&1 | ||
if %errorLevel% == 0 ( | ||
echo Administrator rights confirmed. | ||
goto install | ||
) else ( | ||
echo You need to run this script with administrator rights. | ||
pause | ||
goto eof | ||
) | ||
|
||
:install | ||
echo Installing service | ||
call "%~dp0nssm.exe" install NzbHydra "%%~dp0..\nzbhydra.exe" | ||
if %errorlevel% neq 0 goto failure | ||
echo Setting service exe | ||
call "%~dp0nssm.exe" set NzbHydra Application "%~dp0..\nzbhydra.exe" | ||
if %errorlevel% neq 0 goto failure | ||
echo Setting service folder | ||
call "%~dp0nssm.exe" set NzbHydra AppDirectory "%~dp0.." | ||
if %errorlevel% neq 0 goto failure | ||
echo Service installed successfully. Starting service... | ||
call "%~dp0nssm.exe" start NzbHydra | ||
pause | ||
goto eof | ||
|
||
:failure | ||
echo An error occured while installing the service. | ||
pause | ||
|
||
:eof |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@echo off | ||
|
||
net session >nul 2>&1 | ||
if %errorLevel% == 0 ( | ||
echo Administrator rights confirmed. | ||
goto install | ||
) else ( | ||
echo You need to run this script with administrator rights. | ||
pause | ||
goto eof | ||
) | ||
|
||
:install | ||
echo Stopping service | ||
call "%~dp0nssm.exe" stop NzbHydra | ||
if %errorlevel% neq 0 goto failure | ||
echo Uninstalling service | ||
call "%~dp0nssm.exe" remove nzbhydra confirm | ||
if %errorlevel% neq 0 goto failure | ||
pause | ||
goto eof | ||
|
||
:failure | ||
echo An error occured while uninstalling the service. | ||
pause | ||
|
||
:eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.2.178 | ||
0.2.179 |