mirror of
https://github.com/hanzozt/zt.git
synced 2026-10-30 15:04:55 +00:00
18 lines
387 B
Bash
18 lines
387 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
# set -o xtrace
|
|
|
|
# this script is executed during the docker build, after the build context has been copied to /docker.build.context
|
|
|
|
ZITI_BIN_DIR="${1}"
|
|
|
|
if [ -d /docker.build.context/ziti-bin ]; then
|
|
mv /docker.build.context/ziti-bin/ "${ZITI_BIN_DIR}"
|
|
else
|
|
source /docker.build.context/ziti-cli-functions.sh
|
|
getZiti
|
|
fi
|