From e3c1db113d8bb96f713039adefc2c560cc8df5e6 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 17 Dec 2020 18:35:21 +0100 Subject: [PATCH] =?UTF-8?q?surveillance=20r=C3=A9cursive=20de=20/home/xbia?= =?UTF-8?q?n/astroport=20avec=20inotifywait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron_MINUTE.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 3fb971e3d..03a242238 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -85,7 +85,7 @@ fi # > <| |_) | | (_| | | | | # /_/\_\_.__/|_|\__,_|_| |_| # -# Transfert ~/astroport/films and animes to IPFS and make Vstream/ASTROPORT indexes on IPNS +# Transfert ~/astroport/*/files to IPFS and make Vstream/ASTROPORT indexes on IPNS # OPTION 1 : NOT DELETING SOURCE # NB: Index published in ~/.zen/ipfs/xbian is the same as files in ~/astroport/*/ @@ -95,8 +95,7 @@ fi # NB: INDEX published in ~/.zen/ipfs/xbian IS ONLY GROWING... # Must manualy run "ipfs unpin" + "ipfs rm" to clean bad files from ~/.zen/ipfs/xbian/INDEXFILES !!! if [[ ! $isinotifywaitRunning ]]; then - /usr/bin/inotifywait -e close_write -m /home/xbian/astroport/films | while read dir flags file; do $MY_PATH/zen/xbian_FASTRXBIAN.sh "$file"; done & - /usr/bin/inotifywait -e close_write -m /home/xbian/astroport/animes | while read dir flags file; do $MY_PATH/zen/xbian_AASTRXBIAN.sh "$file"; done & + /usr/bin/inotifywait -r -e close_write -m /home/xbian/astroport | while read dir flags file; do $MY_PATH/zen/xbian_vstream.sh "$dir" "$file"; done & fi # restart inotifywait (may be useless)