diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-05-29 20:52:47 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-05-29 20:52:47 +0200 |
commit | a5ffe0f7a70ce0eb8b50629d50cc3997d6e119dd (patch) | |
tree | bbbfd7bac958059bb0d47eee7c01997a668697d3 /buildbot/make_auditor_reports.sh | |
parent | 13ec340874b17e4d00c7e2e2d372df7024eed6d1 (diff) | |
download | deployment-a5ffe0f7a70ce0eb8b50629d50cc3997d6e119dd.tar.gz deployment-a5ffe0f7a70ce0eb8b50629d50cc3997d6e119dd.tar.bz2 deployment-a5ffe0f7a70ce0eb8b50629d50cc3997d6e119dd.zip |
take care of group
Diffstat (limited to 'buildbot/make_auditor_reports.sh')
-rwxr-xr-x | buildbot/make_auditor_reports.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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}" |