| #!/bin/bash |
| # Builds and uploads a debian package for pulld . |
| APPNAME=pulld-not-gce |
| 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/pulld ${ROOT}/usr/local/bin/${APPNAME} |
| ${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service |
| ${INSTALL} --mode=644 -T ./res/vul/elements.html ${ROOT}/usr/local/share/${APPNAME}/res/vul/elements.html |
| ${INSTALL} --mode=644 -T ./res/js/core.js ${ROOT}/usr/local/share/${APPNAME}/res/js/core.js |
| ${INSTALL} --mode=644 -T ./res/common/css/md.css ${ROOT}/usr/local/share/${APPNAME}/res/common/css/md.css |
| ${INSTALL} --mode=644 -T ./templates/header.html ${ROOT}/usr/local/share/${APPNAME}/templates/header.html |
| ${INSTALL} --mode=644 -T ./templates/index.html ${ROOT}/usr/local/share/${APPNAME}/templates/index.html |
| ${INSTALL} --mode=644 -T ./templates/titlebar.html ${ROOT}/usr/local/share/${APPNAME}/templates/titlebar.html |
| ${INSTALL} --mode=644 -T ./service-account.json ${ROOT}/usr/local/share/${APPNAME}/service-account.json |
| ${INSTALL_DIR} --mode=777 ${ROOT}/var/${APPNAME} |
| } |
| |
| source ../bash/release.sh |