From b6848130549eb5b64014b7338873b3da97107444 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 20 Mar 2023 23:50:45 +0200 Subject: [PATCH] don't remove --- files/process_motion_event.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/process_motion_event.sh b/files/process_motion_event.sh index 2f18b53..099f512 100644 --- a/files/process_motion_event.sh +++ b/files/process_motion_event.sh @@ -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}"