From 8a5459643340c8eca9f847c4b666fd326c543461 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 13 Sep 2021 01:02:13 +0200 Subject: [PATCH] 363 mn ipfs restart (Peering.Peers reload), can be longer --- cron_MINUTE.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 6150c84..3a22c03 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -240,9 +240,9 @@ if [[ "$timebar" == "12:12" || "$timebar" == "00:12" || "$timebar" == "03:03" || fi # At 03:03 and every 6h runtime restarting IPFS daemon -[[ "$timebar" == "03:03" || $(($runtime % 360)) == 0 ]] && [[ -f ~/.ipfs/config.new ]] && cp ~/.ipfs/config.new ~/.ipfs/config -[[ "$timebar" == "03:03" || $(($runtime % 360)) == 0 ]] && [[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && exit 0 -[[ "$timebar" == "03:03" || $(($runtime % 360)) == 0 ]] && [[ ${YOU} == "xbian" ]] && sudo service ipfs restart && exit 0 +[[ "$timebar" == "03:03" || $(($runtime % 363)) == 0 ]] && [[ -f ~/.ipfs/config.new ]] && cp ~/.ipfs/config.new ~/.ipfs/config +[[ "$timebar" == "03:03" || $(($runtime % 363)) == 0 ]] && [[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && exit 0 +[[ "$timebar" == "03:03" || $(($runtime % 363)) == 0 ]] && [[ ${YOU} == "xbian" ]] && sudo service ipfs restart && exit 0 ################################################################## ##################################################################