fix for issue #3498 - stop-ds.bat doesn't work anymore if not launched from server root (OpenDS1.1.0)
windows 'cd' cmd should be used with the '/d' modifier
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | if "%OPENDS_INVOKE_CLASS%" == "" goto noInvokeClass |
| | | goto launchCommand |
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | if "%OPENDS_INVOKE_CLASS%" == "" goto noInvokeClass |
| | | |
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | goto scriptBegin |
| | | |
| | | |
| | |
| | | for %%i in (%~sf0) do set DIR_HOME=%%~dPsi. |
| | | |
| | | set CUR_DIR=%~dp0 |
| | | cd %DIR_HOME%\.. |
| | | cd /d %DIR_HOME%\.. |
| | | set INSTALL_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | set INSTANCE_DIR= |
| | | for /f "delims=" %%a in (%INSTALL_ROOT%\instance.loc) do ( |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | set OPENDS_INVOKE_CLASS="org.opends.server.tools.makeldif.MakeLDIF" |
| | | set SCRIPT_NAME=make-ldif |
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | set LOG="%INSTANCE_ROOT%\logs\native-windows.out" |
| | | set SCRIPT=start-ds.bat |
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | |
| | | set SCRIPT_NAME=status-panel |
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d%INSTALL_ROOT% |
| | | cd /d%INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d%CUR_DIR% |
| | | |
| | | set LOG="%INSTANCE_ROOT%\logs\native-windows.out" |
| | | set SCRIPT=stop-ds.bat |
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | set SCRIPT_NAME=setup |
| | | |
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | set SCRIPT_NAME=uninstall |
| | | |
| | |
| | | set INSTANCE_DIR=%%a |
| | | ) |
| | | set CUR_DIR=%~dp0 |
| | | cd %INSTALL_ROOT% |
| | | cd %INSTANCE_DIR% |
| | | cd /d %INSTALL_ROOT% |
| | | cd /d %INSTANCE_DIR% |
| | | set INSTANCE_ROOT=%CD% |
| | | cd %CUR_DIR% |
| | | cd /d %CUR_DIR% |
| | | |
| | | :checkNewVersion |
| | | if exist "upgrade.bat.NEW" goto newVersion |