blob: cecb2028f98aa5379b9f7adfb49389c16ac24dd0 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for cq_watcher.
APPNAME=cq-watcherd
DESCRIPTION="Application to watch over the CQ and alert."
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/cq_watcher ${ROOT}/usr/local/bin/cq_watcher
}
source ../bash/release.sh