blob: 192cfa354c178c477b4051c172544c8247325eb5 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for logmetrics.
APPNAME=logmetrics
DESCRIPTION="Application to create metrics from logs queries."
SYSTEMD=${APPNAME}.service
set -x -e
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="sudo 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/logmetrics ${ROOT}/usr/local/bin/logmetrics
${INSTALL} --mode=644 -T ./metrics.json5 ${ROOT}/etc/logmetrics/metrics.json5
}
source ../bash/release.sh