blob: 994c382bc481d3f60eaf82d16b20a662caf41f68 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for Grafana config.
APPNAME=corpproxy
DESCRIPTION="Authenticed proxy server."
SYSTEMD="corpproxy.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_DIR="sudo install -d --verbose --backup=none --group=root --owner=root"
${INSTALL} --mode=755 -T ${GOPATH}/bin/corpproxy ${ROOT}/usr/local/bin/corpproxy
${INSTALL} --mode=644 -T ./sys/corpproxy.service ${ROOT}/etc/systemd/system/corpproxy.service
}
source ../bash/release.sh