commit a5ffe0f7a70ce0eb8b50629d50cc3997d6e119dd
parent 13ec340874b17e4d00c7e2e2d372df7024eed6d1
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Wed, 29 May 2019 20:52:47 +0200
take care of group
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh
@@ -50,6 +50,13 @@ rm "${REPORT_FILE_NOEXT}.tex"
echo Removing "${REPORT_FILE_NOEXT}.log"
rm "${REPORT_FILE_NOEXT}.log"
+# Group to assign the file.
+GROUP="test"
+if $(whoami) | grep demo; then
+ GROUP="demo"
+fi
+
+chgrp ${GROUP} "${REPORT_FILE_NOEXT}.pdf"
chmod g+r "${REPORT_FILE_NOEXT}.pdf"
mv "${REPORT_FILE_NOEXT}.pdf" "${REPORTS_DIRECTORY}"