blob: 81f80f1f0236cc15f77bb2d3153e00e768eabd37 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for router-backup.
APPNAME=router-backup
SYSTEMD="${APPNAME}.service"
DESCRIPTION="backup the router config to GS"
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=755 -T ${GOPATH}/bin/file-backup ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service
}
source ../bash/release.sh