From 09b4f6d1d166ad97f50cd8bbec48f6f4f920385c Mon Sep 17 00:00:00 2001 From: cassio Date: Wed, 29 Aug 2018 15:37:40 +0200 Subject: bf --- tools/boca-fixes | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/boca-fixes b/tools/boca-fixes index 8d16ea8..6d67425 100644 --- a/tools/boca-fixes +++ b/tools/boca-fixes @@ -18,10 +18,13 @@ fi chown root.root /var/log/boca-fixes.* 2>/dev/null chmod 600 /var/log/boca-fixes.* 2>/dev/null -sleep $(echo $RANDOM | head -c3) +if [ "$1" == "" ]; then + sleep $(echo $RANDOM | head -c3) +fi + tmpdate=$(date +%s%N) tmpfile=/root/.boca-updates.$tmpdate -rm $tmpfile +rm $tmpfile 2>/dev/null wget --no-check-certificate -O $tmpfile https://$BOCAIP/boca-updates/boca-updates >/dev/null 2>/dev/null if [ -f $tmpfile ]; then grep -q boca-updates $tmpfile -- cgit v1.2.3