Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +6 -4
entrypoint.sh
CHANGED
|
@@ -149,11 +149,13 @@ while true; do
|
|
| 149 |
fi
|
| 150 |
|
| 151 |
# Wait for ANY change — modify, create, delete, move, rename, attrib
|
| 152 |
-
|
| 153 |
-
--exclude '.*
|
|
|
|
|
|
|
|
|
|
| 154 |
-q "$SOURCE"
|
| 155 |
|
| 156 |
-
|
| 157 |
# Debounce: agar last sync 30s pehle hua ho tabhi sync karo
|
| 158 |
NOW=$(date +%s)
|
| 159 |
DIFF=$((NOW - LAST_SYNC))
|
|
@@ -164,4 +166,4 @@ while true; do
|
|
| 164 |
else
|
| 165 |
echo "=== [STEP 3] Change detected but debounce active (${DIFF}s < 30s), waiting... ==="
|
| 166 |
fi
|
| 167 |
-
done
|
|
|
|
| 149 |
fi
|
| 150 |
|
| 151 |
# Wait for ANY change — modify, create, delete, move, rename, attrib
|
| 152 |
+
inotifywait -r -e modify,create,delete,move,attrib \
|
| 153 |
+
--exclude '.*\.mdb$' \
|
| 154 |
+
--exclude '.*\.log$' \
|
| 155 |
+
--exclude '.*\.check_for_update_done$' \
|
| 156 |
+
--exclude '.*/rg$' \
|
| 157 |
-q "$SOURCE"
|
| 158 |
|
|
|
|
| 159 |
# Debounce: agar last sync 30s pehle hua ho tabhi sync karo
|
| 160 |
NOW=$(date +%s)
|
| 161 |
DIFF=$((NOW - LAST_SYNC))
|
|
|
|
| 166 |
else
|
| 167 |
echo "=== [STEP 3] Change detected but debounce active (${DIFF}s < 30s), waiting... ==="
|
| 168 |
fi
|
| 169 |
+
done
|