Skip to content
Snippets Groups Projects
Commit 8e0a618f authored by felmer's avatar felmer
Browse files

SP-1005, SWE-22: install-servers.sh: Extract tar ball name because wildcards are not working.

SVN: 30128
parent 1caa268a
No related branches found
No related tags found
No related merge requests found
......@@ -29,10 +29,12 @@ rm -rf "$OPENBIS_ROOT_DIR/"openBIS-installation*tar.gz
"$BIN_DIR/fetch-ci-artifacts.sh" -d "$OPENBIS_ROOT_DIR" gradle-installation
echo "==== Unpack installation tar ball and replace console.properties"
tar xzf "$OPENBIS_ROOT_DIR/"openBIS-installation*tar.gz -C "$OPENBIS_ROOT_DIR"
rm -rf "$OPENBIS_ROOT_DIR/"openBIS-installation*tar.gz
rm -f "$OPENBIS_ROOT_DIR/"openBis-installation*/console.properties
cp "$OPENBIS_ROOT_DIR/console.properties" "$OPENBIS_ROOT_DIR/"openBis-installation*/
TARBALL=`ls -1 $OPENBIS_ROOT_DIR/openBIS-installation*.tar.gz`
tar xzf "$TARBALL" -C "$OPENBIS_ROOT_DIR"
rm -rf "$TARBALL"
INSTALLER_DIR=${TARBALL%.tar.gz}
rm -f "$INSTALLER_DIR/console.properties"
cp "$OPENBIS_ROOT_DIR/console.properties" "$INSTALLER_DIR/"
echo "==== Upgrade installation"
"$OPENBIS_ROOT_DIR/"openBis-installation*/run-console.sh
"$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