From 0e741e365aa974a74aee6b43d1b4b759158a5c7e Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 14 Aug 2024 09:15:32 -0500 Subject: [PATCH] Mark addhost.php as deprecated (#16283) Use lnms device:add instead --- addhost.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addhost.php b/addhost.php index 741b523c91..a5e2ac4589 100755 --- a/addhost.php +++ b/addhost.php @@ -18,6 +18,8 @@ use LibreNMS\Exceptions\HostUnreachableException; $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;