diff options
author | Lennart Weller <lhw@ring0.de> | 2017-09-17 22:17:45 +0000 |
---|---|---|
committer | Lennart Weller <lhw@ring0.de> | 2017-09-17 22:17:45 +0000 |
commit | 7ee3962eaca4214264964ae32c86de457a90e382 (patch) | |
tree | 5a784485351593ac6d74fa9fd9bbd8fe7c9c3fe0 /makeself/build-x86_64-static.sh | |
parent | maintscript eludes me (diff) | |
parent | New upstream version 1.8.0+dfsg (diff) | |
download | netdata-7ee3962eaca4214264964ae32c86de457a90e382.tar.xz netdata-7ee3962eaca4214264964ae32c86de457a90e382.zip |
Updated version 1.8.0+dfsg from 'upstream/1.8.0+dfsg'
with Debian dir 412de09d9bca38fe00146ef090f9e53f76493882
Diffstat (limited to 'makeself/build-x86_64-static.sh')
-rwxr-xr-x | makeself/build-x86_64-static.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/makeself/build-x86_64-static.sh b/makeself/build-x86_64-static.sh index 0516beae2..8c84039f3 100755 --- a/makeself/build-x86_64-static.sh +++ b/makeself/build-x86_64-static.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash + +. $(dirname "$0")/../installer/functions.sh || exit 1 set -e @@ -16,22 +18,22 @@ then # # This command maps the current directory to # /usr/src/netdata.git - # inside the container and runs the script setup-x86_64-static.sh + # inside the container and runs the script install-alpine-packages.sh # (also inside the container) # - sudo docker run -v $(pwd):/usr/src/netdata.git:rw alpine:3.5 \ - /bin/sh /usr/src/netdata.git/makeself/setup-x86_64-static.sh + run sudo docker run -v $(pwd):/usr/src/netdata.git:rw alpine:3.6 \ + /bin/sh /usr/src/netdata.git/makeself/install-alpine-packages.sh # save the changes made permanently id=$(sudo docker ps -l -q) - sudo docker commit ${id} "${DOCKER_CONTAINER_NAME}" + run sudo docker commit ${id} "${DOCKER_CONTAINER_NAME}" fi # Run the build script inside the container -sudo docker run -a stdin -a stdout -a stderr -i -t -v \ +run sudo docker run -a stdin -a stdout -a stderr -i -t -v \ $(pwd):/usr/src/netdata.git:rw \ "${DOCKER_CONTAINER_NAME}" \ - /bin/sh /usr/src/netdata.git/makeself/build.sh + /bin/sh /usr/src/netdata.git/makeself/build.sh "${@}" if [ "${USER}" ] then |