Skip to content

Commit

Permalink
Merge pull request #4692 from nextcloud/enh/noid/fix-api-version-bug
Browse files Browse the repository at this point in the history
fix bug with getting api_version
  • Loading branch information
szaimen authored May 22, 2024
2 parents eeccfec + 6d0bee3 commit 9457af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Containers/mastercontainer/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if ! sudo -u www-data docker info &>/dev/null; then
exit 1
fi
API_VERSION_FILE="$(find ./ -name DockerActionManager.php | head -1)"
API_VERSION="$(grep -oP 'const API_VERSION.*\;' "$API_VERSION_FILE" | grep -oP '[0-9]+.[0-9]+' | head -1)"
API_VERSION="$(grep -oP 'const string API_VERSION.*\;' "$API_VERSION_FILE" | grep -oP '[0-9]+.[0-9]+' | head -1)"
# shellcheck disable=SC2001
API_VERSION_NUMB="$(echo "$API_VERSION" | sed 's/\.//')"
LOCAL_API_VERSION_NUMB="$(sudo -u www-data docker version | grep -i "api version" | grep -oP '[0-9]+.[0-9]+' | head -1 | sed 's/\.//')"
Expand Down

0 comments on commit 9457af1

Please sign in to comment.