summaryrefslogtreecommitdiff
path: root/buildbot
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-25 13:31:22 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-25 13:31:22 +0100
commitc29d5d3a407ad9c378c707a7edeb2f66ece7b07e (patch)
tree079ee142ea9a0e95df37c8dba84d724dcda38ef5 /buildbot
parente33b08e230818cda00333ebbc4ac0e2e868801e9 (diff)
downloaddeployment-c29d5d3a407ad9c378c707a7edeb2f66ece7b07e.tar.gz
deployment-c29d5d3a407ad9c378c707a7edeb2f66ece7b07e.tar.bz2
deployment-c29d5d3a407ad9c378c707a7edeb2f66ece7b07e.zip
remove strange chgrp'ing
Diffstat (limited to 'buildbot')
-rwxr-xr-xbuildbot/make_auditor_reports.sh20
1 files changed, 7 insertions, 13 deletions
diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh
index 8514edf..e696fa9 100755
--- a/buildbot/make_auditor_reports.sh
+++ b/buildbot/make_auditor_reports.sh
@@ -14,8 +14,8 @@ source ${HOME}/activate
taler-deployment build
DATE=$(date +%Y-%m-%d)
-REPORT_FILE_NOEXT=${HOME}/audit_report.${DATE}
-WIRE_REPORT_FILE_NOEXT=${HOME}/wire_audit_report.${DATE}
+REPORT_FILE_NOEXT="${HOME}/audit_report.${DATE}"
+WIRE_REPORT_FILE_NOEXT="${HOME}/wire_audit_report.${DATE}"
JINJA_TEMPLATE="auditor-report.tex.j2"
REPORTS_DIRECTORY=$(taler-config -s auditor -o reports -f)
@@ -38,7 +38,7 @@ if test -a ${REPORTS_DIRECTORY}/$(basename "${REPORT_FILE_NOEXT}.pdf"); then
fi
-CONFIG_FILE=${TALER_HOME}/.config/taler.conf
+CONFIG_FILE="${TALER_HOME}/.config/taler.conf"
# Generate first report.
echo "Running taler-auditor"
@@ -83,15 +83,9 @@ if ! test -f "${REPORT_FILE_NOEXT}.pdf"; then
exit 1
fi
-# Group to assign the file.
-GROUP="test"
-if echo $(whoami) | grep demo; then
- GROUP="demo"
-fi
-
-chgrp ${GROUP} "${REPORT_FILE_NOEXT}.pdf"
-chmod 040 "${REPORT_FILE_NOEXT}.pdf"
-
+mkdir -p "${REPORTS_DIRECTORY}"
+chmod 444 "${REPORT_FILE_NOEXT}.pdf"
mv "${REPORT_FILE_NOEXT}.pdf" "${REPORTS_DIRECTORY}"
-
echo Reports moved in "${REPORTS_DIRECTORY}".
+
+exit 0