Skip to content

Commit

Permalink
Mark addhost.php as deprecated (librenms#16283)
Browse files Browse the repository at this point in the history
Use lnms device:add instead
  • Loading branch information
murrant authored Aug 14, 2024
1 parent 9455173 commit 0e741e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addhost.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
$init_modules = [];
require __DIR__ . '/includes/init.php';

c_echo('%RWarning: addhost.php is deprecated!%n Use %9lnms device:add%n instead.' . PHP_EOL . PHP_EOL);

$options = getopt('Pbg:p:f::');

$device = new Device;
Expand Down

0 comments on commit 0e741e3

Please sign in to comment.