fixing installers / restart services

This commit is contained in:
Martin Karkowski 2021-07-29 07:55:32 +02:00
parent b64bb16111
commit 84e6be647d
3 changed files with 22 additions and 4 deletions

View File

@ -5,14 +5,14 @@ if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
%@Try%
@REM Uninstall IO-Server
node .\dist\lib\cli\ioServerService.js -m uninstall
node .\dist\lib\cli\ioServerService.js -m install
%@EndTry%
:@Catch
echo uninstall IO-Server
:@EndCatch
@REM Uninstall all Services
for /f "delims=" %%a in ('dir /s /o /b *03-uninstall.bat') do (
for /f "delims=" %%a in ('dir /s /o /b *01-install.bat') do (
echo %%a
call %%a
)

18
00-start-all-services.bat Normal file
View File

@ -0,0 +1,18 @@
set DIR=%~dp0
cd "%DIR%"
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
%@Try%
@REM Uninstall IO-Server
node .\dist\lib\cli\ioServerService.js -m restart
%@EndTry%
:@Catch
echo restarted IO-Server
:@EndCatch
@REM Uninstall all Services
for /f "delims=" %%a in ('dir /s /o /b *02-restart.bat') do (
echo %%a
call %%a
)

View File

@ -492,8 +492,8 @@ export async function interact(
const data = await getJsonInput();
try {
await dispatcher.emit(dataPath, data);
// await dispatcher.emit(dataPath, data);
// Dont gets an update.
await dispatcher.emit(dataPath, data, "cli-interaction-tool");
} catch (e) {
logger.warn("failed to update the data");
logger.error(e);