소스 검색

Use https

Bob Mottram 11 년 전
부모
커밋
2641a16b78
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4
    4
      beaglebone.txt

+ 4
- 4
beaglebone.txt 파일 보기

500
 An example would look like:
500
 An example would look like:
501
 
501
 
502
 #+BEGIN_SRC: bash
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
 #+END_SRC
504
 #+END_SRC
505
 
505
 
506
 Edit */etc/crontab* and append that to the end of the file.
506
 Edit */etc/crontab* and append that to the end of the file.
520
 #+BEGIN_SRC: bash
520
 #+BEGIN_SRC: bash
521
 #!/bin/bash
521
 #!/bin/bash
522
 # subdomain name 1
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
 # subdomain name 2
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
 #+END_SRC
527
 #+END_SRC
528
 
528
 
529
 Save and exit, then make the script runnable and only readable by the root user.
529
 Save and exit, then make the script runnable and only readable by the root user.
530
 
530
 
531
 #+BEGIN_SRC: bash
531
 #+BEGIN_SRC: bash
532
-chmod 400 /usr/bin/dynamicdns
532
+chmod 600 /usr/bin/dynamicdns
533
 chmod +x /usr/bin/dynamicdns
533
 chmod +x /usr/bin/dynamicdns
534
 #+END_SRC
534
 #+END_SRC
535
 
535