summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-06-23 16:03:05 +0700
committerGitHub <noreply@github.com>2021-06-23 16:03:05 +0700
commitec837dabd81aa359167a196240b8e0715fbfada6 (patch)
treef0fce2465017201738d79585878f961bd0f59b16
parentb429ce677d0356c2a2d31a30045b07a98f8d571c (diff)
parent562a122531315ecb35dc45cb5671e1e67221b936 (diff)
downloadvyatta-cfg-system-ec837dabd81aa359167a196240b8e0715fbfada6.tar.gz
vyatta-cfg-system-ec837dabd81aa359167a196240b8e0715fbfada6.zip
Merge pull request #150 from erkin/current
T3506: Deprecate `loadkey`
-rwxr-xr-xscripts/vyatta-load-user-key.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-load-user-key.pl b/scripts/vyatta-load-user-key.pl
index 4655fbad..6e62335f 100755
--- a/scripts/vyatta-load-user-key.pl
+++ b/scripts/vyatta-load-user-key.pl
@@ -157,6 +157,10 @@ sub getkeys {
}
}
+print "Warning: `loadkey' command has been deprecated and will be removed in a future version.\n";
+print "Instead, use the op-mode command `generate public-key-command' to generate commands for manual addition:\n";
+print "$ generate public-key-command name <username> path <path-or-url>\n\n";
+
die "Incorrect number of arguments, expect\n",
" loadkey user filename|url\n"
unless ($#ARGV == 1);