summaryrefslogtreecommitdiffstats
path: root/packaging/makeself/build-static.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-14 18:12:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-14 18:12:14 +0000
commitbb50acdcb8073654ea667b8c0272e335bd43f844 (patch)
tree1e00c8a29871426f8182658928dcb62e42d57ce8 /packaging/makeself/build-static.sh
parentReleasing debian version 1.33.1-1. (diff)
downloadnetdata-bb50acdcb8073654ea667b8c0272e335bd43f844.tar.xz
netdata-bb50acdcb8073654ea667b8c0272e335bd43f844.zip
Merging upstream version 1.34.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/makeself/build-static.sh')
-rwxr-xr-xpackaging/makeself/build-static.sh16
1 files changed, 6 insertions, 10 deletions
diff --git a/packaging/makeself/build-static.sh b/packaging/makeself/build-static.sh
index e4c92a7ba..f38353721 100755
--- a/packaging/makeself/build-static.sh
+++ b/packaging/makeself/build-static.sh
@@ -45,8 +45,8 @@ if ! docker inspect "${DOCKER_CONTAINER_NAME}" > /dev/null 2>&1; then
run docker pull --platform=${platform} alpine:3.15
fi
- run docker run --platform=${platform} -v "$(pwd)":/usr/src/netdata.git:rw alpine:3.15 \
- /bin/sh /usr/src/netdata.git/packaging/makeself/install-alpine-packages.sh
+ run docker run --platform=${platform} -v "$(pwd)":/netdata:rw alpine:3.15 \
+ /bin/sh /netdata/packaging/makeself/install-alpine-packages.sh
# save the changes made permanently
id=$(docker ps -l -q)
@@ -55,15 +55,11 @@ fi
# Run the build script inside the container
if [ -t 1 ]; then
- run docker run -e BUILDARCH="${BUILDARCH}" -a stdin -a stdout -a stderr -i -t -v "$(pwd)":/usr/src/netdata.git:rw \
+ run docker run -e BUILDARCH="${BUILDARCH}" -a stdin -a stdout -a stderr -i -t -v "$(pwd)":/netdata:rw \
"${DOCKER_CONTAINER_NAME}" \
- /bin/sh /usr/src/netdata.git/packaging/makeself/build.sh "${@}"
+ /bin/sh /netdata/packaging/makeself/build.sh "${@}"
else
- run docker run -e BUILDARCH="${BUILDARCH}" -v "$(pwd)":/usr/src/netdata.git:rw \
+ run docker run -e BUILDARCH="${BUILDARCH}" -v "$(pwd)":/netdata:rw \
-e GITHUB_ACTIONS="${GITHUB_ACTIONS}" "${DOCKER_CONTAINER_NAME}" \
- /bin/sh /usr/src/netdata.git/packaging/makeself/build.sh "${@}"
-fi
-
-if [ "${USER}" ]; then
- sudo chown -R "${USER}" .
+ /bin/sh /netdata/packaging/makeself/build.sh "${@}"
fi