remove tmp file
This commit is contained in:
parent
fa6459af5e
commit
ef54c952ce
1 changed files with 1 additions and 0 deletions
|
@ -243,6 +243,7 @@ if [ -n "${ntfy_server}" ]; then
|
|||
ntfy_data="{ \"topic\": \"motion_detection\", \"message\": \"Event ${event_type} on host ${motion_host} camera ${camera_name}\", \"filename\": \"${temp_file}\" }"
|
||||
curl -s "${ntfy_server}" -T "${temp_file}" -u "${ntfy_user}:${ntfy_password}" -d "${ntfy_data}"
|
||||
return_code=$?
|
||||
rm "${temp_file}"
|
||||
else
|
||||
ntfy_data="{ \"topic\": \"motion_detection\", \"message\": \"Event ${event_type} on host ${motion_host} camera ${camera_name}\"}"
|
||||
curl -s "${ntfy_server}" -u "${ntfy_user}:${ntfy_password}" -d "${ntfy_data}"
|
||||
|
|
Loading…
Reference in a new issue