15
2
Fork 0
Browse Source

Update path to report command.

pitchum 2 years ago committed by root
parent
commit
d34912a42c
  1. 3
      rapport_activite/update_ticket.sh

3
rapport_activite/update_ticket.sh

@ -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

Loading…
Cancel
Save