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