blob: 845aa5c81ccddf0a32f157b042dfcb90ef31ce76 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for pulld .
APPNAME=pulld
SYSTEMD=${APPNAME}.service
SYSTEMD_TIMER=""
DESCRIPTION="Application to pull push-controlled applications. Also allows viewing those applications status."
# 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/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service
${INSTALL_DIR} --mode=777 ${ROOT}/var/${APPNAME}
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/pulld/
${INSTALL} --mode=644 ./dist/* ${ROOT}/usr/local/share/pulld/
}
source ../bash/release.sh