summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-05 19:06:44 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-05 19:06:44 +0100
commit7bc9214d00e4807d3103c02241940c562801d492 (patch)
tree39a753bc50c41dcdd3f9051ababcc0a36871d1d5
parentb6cb8902fd019d8e932a0b42ed2c1bfd665a90ab (diff)
downloaddeployment-7bc9214d00e4807d3103c02241940c562801d492.tar.gz
deployment-7bc9214d00e4807d3103c02241940c562801d492.tar.bz2
deployment-7bc9214d00e4807d3103c02241940c562801d492.zip
Removing leftover sudos.
-rwxr-xr-xbuildbot/make_auditor_reports.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh
index 1add3cb..6f48659 100755
--- a/buildbot/make_auditor_reports.sh
+++ b/buildbot/make_auditor_reports.sh
@@ -10,7 +10,6 @@
DATE=$(date +%Y-%m-%d)
REPORT_FILE_NOEXT=${HOME}/audit_report.${DATE}
WIRE_REPORT_FILE_NOEXT=${HOME}/wire_audit_report.${DATE}
-SUDO_COLOR="sudo -u ${ACTIVE_COLOR}"
JINJA_TEMPLATE="auditor-report.tex.j2"
REPORTS_DIRECTORY="${HOME}/reports"
@@ -27,7 +26,7 @@ CMD=$(printf "%s; %s" \
bash -c "$CMD"
# Generate first report.
-${SUDO_COLOR} bash -c \
+bash -c \
"source /home/${ACTIVE_COLOR}/activate; \
taler-auditor > ${REPORT_FILE_NOEXT}.txt"
@@ -50,11 +49,11 @@ fi
# POLISHING ENDS HERE.
-${SUDO_COLOR} pdflatex \
+pdflatex \
--output-directory $REPORTS_DIRECTORY \
"${REPORT_FILE}.tex"
-${SUDO_COLOR} rm
+rm
"${REPORT_FILE}.log"
"${REPORT_FILE}.tex"
"${REPORT_FILE}.txt"