Use https

This commit is contained in:
Bob Mottram 2014-03-29 09:47:13 +00:00
parent f1d648e48a
commit 2641a16b78
1 changed files with 4 additions and 4 deletions

View File

@ -500,7 +500,7 @@ Select "/dynamic DNS/" then click "/quick cron example/"
An example would look like: An example would look like:
#+BEGIN_SRC: bash #+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 #+END_SRC
Edit */etc/crontab* and append that to the end of the file. 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 #+BEGIN_SRC: bash
#!/bin/bash #!/bin/bash
# subdomain name 1 # subdomain name 1
wget -O - http://freedns.afraid.org/dynamic/update.php?<subdomain code 1>== >> /dev/null 2>&1 wget -O - https://freedns.afraid.org/dynamic/update.php?<subdomain code 1>== >> /dev/null 2>&1
# subdomain name 2 # subdomain name 2
wget -O - http://freedns.afraid.org/dynamic/update.php?<subdomain code 2>== >> /dev/null 2>&1 wget -O - https://freedns.afraid.org/dynamic/update.php?<subdomain code 2>== >> /dev/null 2>&1
... ...
#+END_SRC #+END_SRC
Save and exit, then make the script runnable and only readable by the root user. Save and exit, then make the script runnable and only readable by the root user.
#+BEGIN_SRC: bash #+BEGIN_SRC: bash
chmod 400 /usr/bin/dynamicdns chmod 600 /usr/bin/dynamicdns
chmod +x /usr/bin/dynamicdns chmod +x /usr/bin/dynamicdns
#+END_SRC #+END_SRC