From 0b16b5755183bf5f05e5463419128c9f3b2d9675 Mon Sep 17 00:00:00 2001 From: gyurix Date: Sat, 10 Sep 2022 15:47:19 +0000 Subject: [PATCH] Added MOVED_TO event to inotify watch line --- scripts/scheduler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scheduler.sh b/scripts/scheduler.sh index 8386942..3d54e05 100755 --- a/scripts/scheduler.sh +++ b/scripts/scheduler.sh @@ -33,7 +33,7 @@ do /scripts/check_proxy_state.sh $DOMAIN; fi - elif [[ "${parent}" == "${DOMAIN_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE,MOVED_TO" ]]; then + elif [[ "${parent}" == "${DOMAIN_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" || "${op}" == "MOVED_TO" ]]; then DOMAIN=$(echo $file);