Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal EnableDelayedExpansion
- FOR /F %%I IN ("%0") DO SET BATDIR=%%~dpI
- del %BATDIR%\conf\nginx.conf
- TYPE %BATDIR%\temp\conftemplate.conf >> %BATDIR%\conf\nginx.conf
- call %BATDIR%/temp/ServerSelector.bat
- :repeatkeyinput
- echo.
- echo Copy your key from restream.io and paste it with right mouse button
- SET /P streamkey="Restream key: "
- echo streamkey is set to "!streamkey!"
- if "!streamkey!"=="" goto repeatkeyinput
- echo !streamkey!>> %BATDIR%\conf\nginx.conf
- echo ;}}} >> %BATDIR%\conf\nginx.conf
- echo updating nginx process
- taskkill /f /IM %BATDIR%\nginx.exe > nul 2> nul
- start "" "%BATDIR%\nginx.exe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement