blob: c68744c6117731ced54aaa9793c3a2ccf34c65f1 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for datahopper.
APPNAME=datahopperd
DESCRIPTION="Program which ingests data into InfluxDB and MySQL."
SYSTEMD=${APPNAME}.service
set -x -e
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="fakeroot install -D --verbose --backup=none --group=root --owner=root"
INSTALL_DIR="fakeroot install -d --verbose --backup=none --group=root --owner=root"
${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service
${INSTALL} --mode=755 -T ${GOPATH}/bin/datahopper ${ROOT}/usr/local/bin/datahopper
${INSTALL_DIR} --mode=777 ${ROOT}/mnt/pd0/datahopper_workdir
${INSTALL} --mode=644 -T ../infra/config/recipes.cfg ${ROOT}/mnt/pd0/datahopper_workdir/recipes.cfg
}
source ../bash/release.sh