23
2
Fork 0

Update path to report command.

This commit is contained in:
pitchum 2020-03-11 10:28:56 +01:00 committed by root
parent 65ee95c018
commit d34912a42c
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
REDMINE_BASE_URL="https://agir.april.org"
API_KEY="4d724eb3e51600b6f9aff26360a5430f76ad4dd9"
TICKET_ID=4047
REPORT_COMMAND="/usr/local/sbin/display_activity_report"
main() {
post_report
@ -13,7 +14,7 @@ post_report() {
cat <<EOF > "${datafile}"
{
"issue": {
"notes": "$(/usr/local/bin/rapport_activites.sh | sed -z 's/\n/\\n/g')"
"notes": "$(${REPORT_COMMAND} | sed -z 's/\n/\\n/g')"
}
}
EOF