WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
84 stars 37 forks source link

[FEATURE REQUEST] Fully automated client install #605

Open ValeriiVozniuk opened 5 months ago

ValeriiVozniuk commented 5 months ago

Please prefix your issue title with one of the following: [BUG], [ISSUE], [FEATURE REQUEST], [MODULE REQUEST], [OTHER].

Replace everything between stars with current version of your facileManager and module installations:
fM Version : 4.5.0 fmDNS Version : 5.3.3


(BUG | ISSUE) Expected Behavior: Be able to run php /usr/local/facileManager/fmDNS/client.php install from automated scripts

(BUG | ISSUE) Actual Behavior: There is a prompt for get updates via cron, ssh, or http(s) [c|s|h]?

(BUG | ISSUE) Steps to reproduce:

  1. Deploy config.inc.php file with proper content for node connection.
  2. Run php /usr/local/facileManager/fmDNS/client.php install
  3. Expect to have node installed automatically, but got input prompt.

Per what I see the issue comes from https://github.com/WillyXJ/facileManager/blob/master/client/facileManager/functions.php#L811 having $update_method = null, and not taking it from DEFINEs in config.inc.php. It would be nice to have this parameter present in config too.

{replace this line with your issue content}