diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-08-17 14:02:00 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-08-17 14:02:00 +0200 |
commit | 05f2587bdff32e5d2f8c19d290654beb47be2db5 (patch) | |
tree | 39b39e363734fbe48b8e2cde4fcbfd7956306679 | |
parent | a3c86acc054af11a070206b541b00090d7991661 (diff) |
change config location from /etc to /data
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/main.rs | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -13,7 +13,7 @@ It only works if you're using INWX's own nameservers for your zone. dyndns [config] ``` -where config is the config path (defaults to /etc/dyndns.conf). +where config is the config path (defaults to /data/dyndns.conf). # Configuration diff --git a/src/main.rs b/src/main.rs index 938f851..be87630 100644 --- a/src/main.rs +++ b/src/main.rs @@ -146,10 +146,10 @@ struct ConfigNet6 { fn main() -> Result<()> { // Get the config path from the first command-line argument - // or fall back to the default /etc/dyndns.conf. + // or fall back to the default /data/dyndns.conf. let config_path = env::args() .nth(1) - .unwrap_or_else(|| String::from("/etc/dyndns.conf")); + .unwrap_or_else(|| String::from("/data/dyndns.conf")); let mut config_file = File::open(config_path.as_str())?; |