Update path to report command.
This commit is contained in:
parent
65ee95c018
commit
d34912a42c
|
@ -3,6 +3,7 @@
|
||||||
REDMINE_BASE_URL="https://agir.april.org"
|
REDMINE_BASE_URL="https://agir.april.org"
|
||||||
API_KEY="4d724eb3e51600b6f9aff26360a5430f76ad4dd9"
|
API_KEY="4d724eb3e51600b6f9aff26360a5430f76ad4dd9"
|
||||||
TICKET_ID=4047
|
TICKET_ID=4047
|
||||||
|
REPORT_COMMAND="/usr/local/sbin/display_activity_report"
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
post_report
|
post_report
|
||||||
|
@ -13,7 +14,7 @@ post_report() {
|
||||||
cat <<EOF > "${datafile}"
|
cat <<EOF > "${datafile}"
|
||||||
{
|
{
|
||||||
"issue": {
|
"issue": {
|
||||||
"notes": "$(/usr/local/bin/rapport_activites.sh | sed -z 's/\n/\\n/g')"
|
"notes": "$(${REPORT_COMMAND} | sed -z 's/\n/\\n/g')"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue