From 84e6be647d7d42046d7cbc03d7c9b21c32a67b2c Mon Sep 17 00:00:00 2001 From: Martin Karkowski Date: Thu, 29 Jul 2021 07:55:32 +0200 Subject: [PATCH] fixing installers / restart services --- 00-install-all-services.bat | 4 ++-- 00-start-all-services.bat | 18 ++++++++++++++++++ modules/cli/src/interact.ts | 4 ++-- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 00-start-all-services.bat diff --git a/00-install-all-services.bat b/00-install-all-services.bat index c607c72..8a90b07 100644 --- a/00-install-all-services.bat +++ b/00-install-all-services.bat @@ -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 ) \ No newline at end of file diff --git a/00-start-all-services.bat b/00-start-all-services.bat new file mode 100644 index 0000000..e551bb7 --- /dev/null +++ b/00-start-all-services.bat @@ -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 +) \ No newline at end of file diff --git a/modules/cli/src/interact.ts b/modules/cli/src/interact.ts index cd39e2d..c668e17 100644 --- a/modules/cli/src/interact.ts +++ b/modules/cli/src/interact.ts @@ -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);