Skip to content

Specify config files on command line #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hpreusse opened this issue Jun 17, 2022 · 1 comment
Closed

Specify config files on command line #20

hpreusse opened this issue Jun 17, 2022 · 1 comment

Comments

@hpreusse
Copy link
Contributor

Not sure, if I missed that option. It should be possible to specify the config file on the command line. In my personal hack it looks like this:

diff -urN dynamic-dns-netcup-api-master_mod_hilmar/functions.php dynamic-dns-netcup-api-master_mod_hilmar_orig/functions.php
--- dynamic-dns-netcup-api-master_mod_hilmar/functions.php      2021-10-23 14:53:58.036193565 +0200
+++ dynamic-dns-netcup-api-master_mod_hilmar_orig/functions.php 2018-06-10 05:27:20.000000000 +0200
@@ -1,6 +1,6 @@
 <?php

-require_once $argv[1];
+require_once 'config.php';

 //Declare possbile options
 $quiet = false;

Yes, this is based on a old release.``

@stecklars
Copy link
Owner

Hi @hpreusse,

Thank you for your suggestion.

This is now a new feature in the newest version 4.0 of the script:
https://github.com/stecklars/dynamic-dns-netcup-api/releases/tag/v4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants