dynamic-dns-netcup-api
dynamic-dns-netcup-api copied to clipboard
Specify config files on command line
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.``