mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-07 22:27:42 +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
|
exit 1
|
||||||
fi
|
fi
|
||||||
API_VERSION_FILE="$(find ./ -name DockerActionManager.php | head -1)"
|
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
|
# shellcheck disable=SC2001
|
||||||
API_VERSION_NUMB="$(echo "$API_VERSION" | sed 's/\.//')"
|
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/\.//')"
|
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