Skip to content

Commit

Permalink
Fix update definition for OCI docker
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Dec 25, 2024
1 parent 1b72869 commit 04bd4ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions install/OneClickInstall/install-Docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ INSTALL_DOCUMENT_SERVER="true";
INSTALL_ELASTICSEARCH="true";
INSTALL_FLUENT_BIT="true";
INSTALL_PRODUCT="true";
UPDATE="false";
UNINSTALL="false";
HUB="";
USERNAME="";
Expand Down Expand Up @@ -1092,7 +1091,7 @@ get_available_version () {

VERSION_REGEX='^[0-9]+\.[0-9]+(\.[0-9]+){0,2}$'
[ ${#TAGS_RESP[@]} -eq 1 ] && LATEST_TAG="${TAGS_RESP[0]}" || LATEST_TAG=$(printf "%s\n" "${TAGS_RESP[@]}" | grep -E "$VERSION_REGEX" | sort -V | tail -n 1)
LATEST_TAG=${STATUS:+${LATEST_TAG:-$(printf "%s\n" "${TAGS_RESP[@]}" | sort -V | tail -n 1)}} #Fix for 4testing develop tags
LATEST_TAG=${LATEST_TAG:-${STATUS:+-$(printf "%s\n" "${TAGS_RESP[@]}" | sort -V | tail -n 1)}} #Fix for 4testing develop tags

if [ ! -z "${LATEST_TAG}" ]; then
echo "${LATEST_TAG}" | sed "s/\"//g"
Expand Down Expand Up @@ -1179,6 +1178,7 @@ set_docspace_params() {
}

set_installation_type_data () {
UPDATE=${UPDATE:-$(test -n "$(docker ps -aqf name=${CONTAINER_NAME})" && echo true)}
if [ -z "${DOCUMENT_SERVER_IMAGE_NAME}" ]; then
DOCUMENT_SERVER_IMAGE_NAME="${PACKAGE_SYSNAME}/${STATUS}documentserver"
case "${INSTALLATION_TYPE}" in
Expand Down
3 changes: 0 additions & 3 deletions install/common/self-extracting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ docker load -i ${TEMP_DIR}/docker_images.tar.xz
echo "Extracting OneClickInstall files to the current directory..."
mv -f ${TEMP_DIR}/{docker.tar.gz,install-Docker.sh} $(dirname "$0")

#Check if an update is needed
docker ps -aqf name=$(grep -oP 'PACKAGE_SYSNAME="\K[^"]+' $(dirname "$0")/install-Docker.sh)-api && UPDATE="-u true"

echo "Running the install-Docker.sh script..."
chmod +x $(dirname "$0")/install-Docker.sh
$(dirname "$0")/install-Docker.sh ${UPDATE}
Expand Down

0 comments on commit 04bd4ec

Please sign in to comment.