aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-fixes
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2018-08-29 13:37:40 +0000
committercassio <cassiopc@gmail.com>2018-08-29 13:37:40 +0000
commit09b4f6d1d166ad97f50cd8bbec48f6f4f920385c (patch)
treef9fb70e5e1630ae3233995e6132652ed6b9a2de7 /tools/boca-fixes
parenta8d63115ccd3f8d4a54826fcdb2d4a6d01125d67 (diff)
downloadboca-09b4f6d1d166ad97f50cd8bbec48f6f4f920385c.tar.gz
boca-09b4f6d1d166ad97f50cd8bbec48f6f4f920385c.zip
bf
Diffstat (limited to 'tools/boca-fixes')
-rw-r--r--tools/boca-fixes7
1 files changed, 5 insertions, 2 deletions
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