Skip to content

Commit

Permalink
Fix update logic for OCI (#157)
Browse files Browse the repository at this point in the history
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/DocSpace-buildtools/pulls/157
Co-authored-by: Vladimir Ischenko <[email protected]>
Co-committed-by: Vladimir Ischenko <[email protected]>
  • Loading branch information
isboston authored and evgeniy-antonyuk committed Jan 21, 2025
1 parent 053a443 commit 6c3b52f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions install/OneClickInstall/docspace-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,13 @@ fi

if command_exists docker &> /dev/null && docker ps -a --format '{{.Names}}' | grep -q "${product_sysname}-api"; then
DOCKER="true"
PARAMETERS="-u true $PARAMETERS"
elif command_exists apt-get &> /dev/null && dpkg -s ${product}-api >/dev/null 2>&1; then
DOCKER="false"
PARAMETERS="-u true $PARAMETERS"
elif command_exists yum &> /dev/null && rpm -q ${product}-api >/dev/null 2>&1; then
DOCKER="false"
PARAMETERS="-u true $PARAMETERS"
fi

if [ -z "$DOCKER" ]; then
Expand Down
2 changes: 1 addition & 1 deletion install/OneClickInstall/install-Docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ set_docspace_params() {
}

set_installation_type_data () {
UPDATE=${UPDATE:-$(test -n "$(docker ps -aqf name=${CONTAINER_NAME})" && echo true)}
is_command_exists docker && 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

0 comments on commit 6c3b52f

Please sign in to comment.