mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
26.36.2008 4d40455be028a2eec64e92ed2c2c4292838f69a0
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
10 files modified
64 ■■■■ changed files
opends/resource/bin/_client-script.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/bin/_mixed-script.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/bin/_script-util.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/bin/make-ldif.bat 10 ●●●● patch | view | raw | blame | history
opends/resource/bin/start-ds.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/bin/status-panel.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/bin/stop-ds.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/setup.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/uninstall.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/upgrade.bat 6 ●●●● patch | view | raw | blame | history
opends/resource/bin/_client-script.bat
@@ -37,10 +37,10 @@
  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
opends/resource/bin/_mixed-script.bat
@@ -37,10 +37,10 @@
  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
opends/resource/bin/_script-util.bat
@@ -48,10 +48,10 @@
  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
opends/resource/bin/make-ldif.bat
@@ -36,19 +36,19 @@
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
opends/resource/bin/start-ds.bat
@@ -34,10 +34,10 @@
  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
opends/resource/bin/status-panel.bat
@@ -34,10 +34,10 @@
  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
opends/resource/bin/stop-ds.bat
@@ -45,10 +45,10 @@
  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
opends/resource/setup.bat
@@ -43,10 +43,10 @@
  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
opends/resource/uninstall.bat
@@ -34,10 +34,10 @@
  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
opends/resource/upgrade.bat
@@ -34,10 +34,10 @@
  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