From 2641a16b78733ed03c7ab381da5573584ceb32c0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 29 Mar 2014 09:47:13 +0000 Subject: [PATCH] Use https --- beaglebone.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beaglebone.txt b/beaglebone.txt index 345dded0..6a7b61e9 100644 --- a/beaglebone.txt +++ b/beaglebone.txt @@ -500,7 +500,7 @@ Select "/dynamic DNS/" then click "/quick cron example/" An example would look like: #+BEGIN_SRC: bash -4,9,14,19,24,29,34,39,44,49,54,59 * * * * root sleep 29 ; /usr/bin/timeout 120 wget -O - http://free\ dns.afraid.org/dynamic/update.php?ABCKDNRCLFHENSLKNFEGSBFLFF== >> /\ tmp/freedns_mysubdomain_us_to.log 2>&1 & +4,9,14,19,24,29,34,39,44,49,54,59 * * * * root sleep 29 ; /usr/bin/timeout 120 wget -O - https://free\ dns.afraid.org/dynamic/update.php?ABCKDNRCLFHENSLKNFEGSBFLFF== >> /\ tmp/freedns_mysubdomain_us_to.log 2>&1 & #+END_SRC Edit */etc/crontab* and append that to the end of the file. @@ -520,16 +520,16 @@ Add however many freedns subdomains you have. #+BEGIN_SRC: bash #!/bin/bash # subdomain name 1 -wget -O - http://freedns.afraid.org/dynamic/update.php?== >> /dev/null 2>&1 +wget -O - https://freedns.afraid.org/dynamic/update.php?== >> /dev/null 2>&1 # subdomain name 2 -wget -O - http://freedns.afraid.org/dynamic/update.php?== >> /dev/null 2>&1 +wget -O - https://freedns.afraid.org/dynamic/update.php?== >> /dev/null 2>&1 ... #+END_SRC Save and exit, then make the script runnable and only readable by the root user. #+BEGIN_SRC: bash -chmod 400 /usr/bin/dynamicdns +chmod 600 /usr/bin/dynamicdns chmod +x /usr/bin/dynamicdns #+END_SRC