Skip to content
Snippets Groups Projects
Commit 2fa703aa authored by kaloyane's avatar kaloyane
Browse files

bugfix: rewrite sed command so that it works on Mac OS *and* on Linux

SVN: 23333
parent 6191ef7c
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,8 @@ popd > /dev/null
# set INSTALL_PATH in the console.properties
sed_params='s#^INSTALL_PATH=.*$#INSTALL_PATH='$OPENBIS_INSTALL_DIR'#'
sed -i '' "$sed_params" $INSTALLER_DIR/console.properties
sed "$sed_params" $INSTALLER_DIR/console.properties > $INSTALLER_DIR/console.properties.modified
mv $INSTALLER_DIR/console.properties.modified > $INSTALLER_DIR/console.properties
# run the installation
$INSTALLER_DIR/run-console.sh
......
......@@ -62,7 +62,8 @@ popd > /dev/null
# set INSTALL_PATH in the console.properties
sed_params='s#^INSTALL_PATH=.*$#INSTALL_PATH='$OPENBIS_INSTALL_DIR'#'
sed -i '' "$sed_params" $INSTALLER_DIR/console.properties
sed "$sed_params" $INSTALLER_DIR/console.properties > $INSTALLER_DIR/console.properties.modified
mv $INSTALLER_DIR/console.properties.modified > $INSTALLER_DIR/console.properties
# run the installation
$INSTALLER_DIR/run-console.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment