mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-04 04:51:59 +08:00
fix bug with getting api_version
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
eeccfec0c9
commit
6d0bee33d3
1 changed files with 1 additions and 1 deletions
|
@ -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/\.//')"
|
||||
|
|
Loading…
Reference in a new issue