Bob Mottram преди 11 години
родител
ревизия
2641a16b78
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4
    4
      beaglebone.txt

+ 4
- 4
beaglebone.txt Целия файл

@@ -500,7 +500,7 @@ Select "/dynamic DNS/" then click "/quick cron example/"
500 500
 An example would look like:
501 501
 
502 502
 #+BEGIN_SRC: bash
503
-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 &
503
+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 &
504 504
 #+END_SRC
505 505
 
506 506
 Edit */etc/crontab* and append that to the end of the file.
@@ -520,16 +520,16 @@ Add however many freedns subdomains you have.
520 520
 #+BEGIN_SRC: bash
521 521
 #!/bin/bash
522 522
 # subdomain name 1
523
-wget -O - http://freedns.afraid.org/dynamic/update.php?<subdomain code 1>== >> /dev/null 2>&1
523
+wget -O - https://freedns.afraid.org/dynamic/update.php?<subdomain code 1>== >> /dev/null 2>&1
524 524
 # subdomain name 2
525
-wget -O - http://freedns.afraid.org/dynamic/update.php?<subdomain code 2>== >> /dev/null 2>&1
525
+wget -O - https://freedns.afraid.org/dynamic/update.php?<subdomain code 2>== >> /dev/null 2>&1
526 526
 ...
527 527
 #+END_SRC
528 528
 
529 529
 Save and exit, then make the script runnable and only readable by the root user.
530 530
 
531 531
 #+BEGIN_SRC: bash
532
-chmod 400 /usr/bin/dynamicdns
532
+chmod 600 /usr/bin/dynamicdns
533 533
 chmod +x /usr/bin/dynamicdns
534 534
 #+END_SRC
535 535