Added MOVED_TO event to inotify watch line

This commit is contained in:
2022-09-10 15:47:19 +00:00
parent 7679670a61
commit 0b16b57551

View File

@@ -33,7 +33,7 @@ do
/scripts/check_proxy_state.sh $DOMAIN; /scripts/check_proxy_state.sh $DOMAIN;
fi 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); DOMAIN=$(echo $file);