

installpath=`go env GOPATH | awk -F ':' '{print $1}'`/bin

CGO_ENABLED=0 GOOS=linux go build -o ${installpath}/linux_amd64/datasync

cp datasync.conf ${installpath}/linux_amd64
cp datasync.sh ${installpath}/linux_amd64

