Allow active deployment edits
This commit is contained in:
@@ -29,7 +29,9 @@ if not exist "%STEAMCMD_EXE%" (
|
||||
if errorlevel 1 exit /b 1
|
||||
)
|
||||
|
||||
taskkill /IM SCUMServer.exe /F >nul 2>nul
|
||||
call :resolve_scum_exe
|
||||
if exist "%SCUM_EXE%" call :stop_matching_scum
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
pushd "%STEAMCMD_DIR%"
|
||||
set "SCUM_STEAMCMD_RESULT=1"
|
||||
@@ -58,6 +60,11 @@ if exist "%SCUM_EXE%" exit /b 0
|
||||
set "SCUM_EXE=%SERVER_ROOT_WINDOWS%\SCUM Server\%SERVER_EXECUTABLE_REF:/=\%"
|
||||
exit /b 0
|
||||
|
||||
:stop_matching_scum
|
||||
if "%SCUM_EXE%"=="" exit /b 0
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -Command "$target=[IO.Path]::GetFullPath($env:SCUM_EXE); Get-CimInstance Win32_Process -Filter \"name='SCUMServer.exe'\" | Where-Object { $_.ExecutablePath -and ([IO.Path]::GetFullPath($_.ExecutablePath) -ieq $target) } | ForEach-Object { Stop-Process -Id $_.ProcessId -Force }"
|
||||
exit /b %ERRORLEVEL%
|
||||
|
||||
:default_steamcmd_dir
|
||||
for %%I in ("%SERVER_ROOT_WINDOWS%") do set "SERVER_ROOT_DRIVE=%%~dI"
|
||||
if "%SERVER_ROOT_DRIVE%"=="" (
|
||||
|
||||
Reference in New Issue
Block a user