From de803ea4d48cb605280df883087d294d2b91d340 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sun, 26 Feb 2023 21:41:55 +0200 Subject: [PATCH] add msg when scp --- files/process_motion_event.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/process_motion_event.sh b/files/process_motion_event.sh index ad5eef6..5f43d49 100644 --- a/files/process_motion_event.sh +++ b/files/process_motion_event.sh @@ -183,6 +183,7 @@ if [ -n "${file}" ]; then file_uri=$(echo "${file}" | sed 's|/srv/expendable_data|https://ficheros.koti.site|g') data="${data}, \"file_uri\": \"${file_uri}\"" if [ -n "${move_to}" ]; then + message "Moving file '${file}' to '${move_to}'..." scp -P "${move_to_port}" "${file}" "${move_to}/" && rm -rf "${file}" fi fi