From c29d5d3a407ad9c378c707a7edeb2f66ece7b07e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 25 Feb 2020 13:31:22 +0100 Subject: remove strange chgrp'ing --- buildbot/make_auditor_reports.sh | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'buildbot') 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 -- cgit v1.2.3