-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First pass at Linux installer * Cleanup install script linux * Cleanup install scripts. Add windows script * Cleanup linux * Bundle release of cloudfuse in zip for installation * Cleanup windows install * Cleanup start/stop for installing plugin * Cleanup windows install script * Use restart on linux to start and stop * Improve error handling for windows script * Use net to start and stop service * Use cloudfuse no_gui option
- Loading branch information
1 parent
af11885
commit 388c34d
Showing
3 changed files
with
96 additions
and
1 deletion.
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
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,52 @@ | ||
:: Copyright © 2024 Seagate Technology LLC and/or its Affiliates | ||
@echo off | ||
|
||
:: Find the installer file | ||
for %%I in (cloudfuse*.exe) do ( | ||
set "installer=%%I" | ||
break | ||
) | ||
|
||
:: Check if the installer file exists and if so install it | ||
if exist "%installer%" ( | ||
echo Installing Cloudfuse | ||
"%installer%" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART | ||
) else ( | ||
echo Installer file not found | ||
exit /b | ||
) | ||
|
||
echo Installing plugin | ||
|
||
:: Stop the VMS server | ||
set serviceName="metavmsMediaServer" | ||
echo Attempting to stop %serviceName% | ||
net stop %serviceName% >NUL 2>&1 | ||
echo Service stopped successfully. | ||
|
||
:: Copy the plugin file | ||
echo Attempting to copy the plugin file | ||
copy ".\cloudfuse_plugin.dll" "C:\Program Files\Network Optix\Nx Meta\MediaServer\plugins\" | ||
set copyError=%errorlevel% | ||
if %copyError% neq 0 ( | ||
echo Failed to copy the plugin file | ||
) | ||
|
||
:: Restart the VMS | ||
echo Attempting to start %serviceName% | ||
net start %serviceName% >NUL 2>&1 | ||
if %errorlevel% neq 0 ( | ||
echo Installation failed: Unable to restart %serviceName%. It must be restarted manually. | ||
exit /b | ||
) | ||
|
||
if %copyError% neq 0 ( | ||
echo Installation failed: Unable to copy plugin file | ||
exit /b | ||
) | ||
|
||
|
||
echo Service started successfully. | ||
echo Finished installing Cloudfuse plugin | ||
|
||
pause |