docker-caddy/files/bin/docker-caddy-unpack-source

14 lines
239 B
Plaintext
Raw Permalink Normal View History

2017-04-13 03:59:17 +00:00
#!/bin/bash
set -e
if [ -n "${DISABLE_SOURCE_COMPRESSION}" ]; then
exit 0
fi
if [ ! -d "${GOPATH}/src/github.com/mholt/caddy" ]; then
mkdir -p "${GOPATH}"
tar xJ -C "${GOPATH}" -f "/usr/src/go.tar.xz"
rm "/usr/src/go.tar.xz"
fi