blob: 4db1b9dce17ff5ca8735a0e3248bbbec46279250 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for datastore_backup.
APPNAME=datastore-backup
DESCRIPTION="Application to backup Cloud Datastore to Cloud Storage."
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/datastore_backup ${ROOT}/usr/local/bin/datastore_backup
}
source ../bash/release.sh