don't remove

This commit is contained in:
Antonio J. Delgado 2023-03-20 23:50:45 +02:00
parent d4b9cc3ee2
commit b684813054

View file

@ -242,7 +242,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}"
# 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}"