mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-04 06:43:11 +02:00
Include "~docker" in version if built on Docker.
This commit is contained in:
parent
a2faf3dc95
commit
4b019a991f
|
@ -15,6 +15,11 @@ if [ -z "$VERSION" ] && [ -d "$ROOT/../.git" ]; then
|
|||
else
|
||||
VERSION=$(git log -1 --pretty=%H)
|
||||
fi
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
VERSION="$VERSION~docker"
|
||||
elif grep -sq 'docker\|lxc' /proc/1/cgroup; then
|
||||
VERSION="$VERSION~docker"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
|
|
Loading…
Reference in a new issue