From 4afbb9a90fbedc6e6168e68dec550ca0224d6dc0 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sun, 7 Mar 2021 23:10:09 +0100 Subject: [PATCH] MAJ --- cron_MINUTE.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 3ab494a..3f64942 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -23,10 +23,6 @@ export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' # CORRECT VSTREAM ASTROPORT SITE/ART REMOVED AFTER PLUGIN UPDATE [[ ! -f ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py ]] && [[ -f ~/.zen/astroport.py ]] && cp -f ~/.zen/astroport.py ~/.kodi/addons/plugin.video.vstream/resources/sites/ [[ ! -f ~/.kodi/addons/plugin.video.vstream/resources/art/astroport.png ]] && cp ~/.zen/astrXbian/.install/.kodi/addons/plugin.video.vstream/resources/art/astroport.png ~/.kodi/addons/plugin.video.vstream/resources/art/ -if [[ $(diff ~/.zen/astrXbian/.install/.kodi/userdata/addon_data/plugin.video.vstream/settings.xml ~/.kodi/userdata/addon_data/plugin.video.vstream/settings.xml) ]]; then - cp ~/.zen/astrXbian/.install/.kodi/userdata/addon_data/plugin.video.vstream/settings.xml ~/.kodi/userdata/addon_data/plugin.video.vstream/settings.xml - echo "MAJ Vstream settings" -fi ######################################################################## ### NO IP GATEWAY : EXIT @@ -78,6 +74,11 @@ if [[ $(($minute % 15)) == 0 ]]; then ########## DESYNCH SWARM NODE REQUESTS ################# sleep $((1 + RANDOM % 120)) git pull + + if [[ $(diff ~/.zen/astrXbian/.install/.kodi/userdata/addon_data/plugin.video.vstream/settings.xml ~/.kodi/userdata/addon_data/plugin.video.vstream/settings.xml) ]]; then + cp ~/.zen/astrXbian/.install/.kodi/userdata/addon_data/plugin.video.vstream/settings.xml ~/.kodi/userdata/addon_data/plugin.video.vstream/settings.xml + echo "MAJ Vstream settings" + fi ########## OPEN OR CLOSE SSH ACCESS ################# # [[ "$(ipfs p2p ls | grep $G1PUB-ssh)" == "" ]] && sleep $((1 + RANDOM % 10)) && ~/.zen/astrXbian/zen/ssh_forward2onelove.sh # OPEN-SSH # [[ "$(ipfs p2p ls | grep $G1PUB-ssh)" != "" ]] && sleep $((1 + RANDOM % 10)) && ~/.zen/astrXbian/zen/ssh_forward2onelove.sh # CLOSE-SSH