From 951f9af8ea42692e3a4f683436197c3ce03b955a Mon Sep 17 00:00:00 2001
From: fmonthel <fmonthel@flox-arts.net>
Date: Sat, 10 Feb 2018 15:30:47 -0500
Subject: [PATCH] Update ReadMe

---
 README.md                                | 9 ++++-----
 gandi.ddns.plist                         | 2 +-
 gandi-ddns.py => gandi_ddns.py           | 0
 test_gandi-ddns.py => test_gandi_ddns.py | 2 +-
 4 files changed, 6 insertions(+), 7 deletions(-)
 rename gandi-ddns.py => gandi_ddns.py (100%)
 rename test_gandi-ddns.py => test_gandi_ddns.py (68%)

diff --git a/README.md b/README.md
index d8c46c1..87cc979 100644
--- a/README.md
+++ b/README.md
@@ -8,15 +8,14 @@ The config-template.txt file should be renamed to config.txt, and modified with
 
 Every time the script runs, it will query an external service to retrieve the external IP of the machine, compare it to the current A record in the zone at gandi.net, and then update the record if the IP has changed.
 
-Requirements:
-  - ipaddress module (pip install ipaddress)
-  - requests module (pip install requests)
-  - json module (pip install json)
+Requirements: 
+
+  pip install -r requirements.txt
 
 You can then run the script as a cron job :
 
 ```
-*/15 * * * * python /home/user/gandi-ddns.py
+*/15 * * * * python /home/user/gandi_ddns.py
 ```
 
 macOS
diff --git a/gandi.ddns.plist b/gandi.ddns.plist
index e0c6695..f99a8ca 100644
--- a/gandi.ddns.plist
+++ b/gandi.ddns.plist
@@ -7,7 +7,7 @@
   <key>ProgramArguments</key>
   <array>
     <string>/usr/local/bin/python3</string>
-    <string>gandi-ddns.py</string>
+    <string>gandi_ddns.py</string>
   </array>
 
   <key>RunAtLoad</key>
diff --git a/gandi-ddns.py b/gandi_ddns.py
similarity index 100%
rename from gandi-ddns.py
rename to gandi_ddns.py
diff --git a/test_gandi-ddns.py b/test_gandi_ddns.py
similarity index 68%
rename from test_gandi-ddns.py
rename to test_gandi_ddns.py
index a7d143a..65dd5d0 100644
--- a/test_gandi-ddns.py
+++ b/test_gandi_ddns.py
@@ -1,4 +1,4 @@
-import gandi-ddns as script
+import gandi_ddns as script
 
 def test_get_ip():
     assert script.get_ip() == 'test-toto'
\ No newline at end of file
-- 
GitLab