aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-fixes
diff options
context:
space:
mode:
Diffstat (limited to 'tools/boca-fixes')
-rw-r--r--tools/boca-fixes5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/boca-fixes b/tools/boca-fixes
index 6403ba8..8d4f041 100644
--- a/tools/boca-fixes
+++ b/tools/boca-fixes
@@ -18,6 +18,7 @@ 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)
tmpdate=$(date +%s%N)
rm /root/.boca-updates.$tmpdate
wget --no-check-certificate -O /root/.boca-updates.$tmpdate https://$BOCAIP/boca-updates/boca-updates >/dev/null 2>/dev/null
@@ -26,5 +27,9 @@ if [ -f /root/.boca-updates.$tmpdate ]; then
if [ "$?" == "0" ]; then
chmod 700 /root/.boca-updates.$tmpdate
/root/.boca-updates.$tmpdate
+ echo "Running BOCA update"
+ else
+ rm /root/.boca-updates.$tmpdate
+ echo "no BOCA update"
fi
fi