From a5ffe0f7a70ce0eb8b50629d50cc3997d6e119dd Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 29 May 2019 20:52:47 +0200 Subject: take care of group --- buildbot/make_auditor_reports.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'buildbot/make_auditor_reports.sh') diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh index 9690a55..ca71cc5 100755 --- 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}" -- cgit v1.2.3