fix: confusing error messages in groupDelServer

This commit is contained in:
Pierre Kuhner 2021-01-14 09:24:45 +01:00 committed by Stéphane Lesimple
parent 36d0c709db
commit e7e045a40d

View file

@ -62,7 +62,7 @@ $user = '!scpdownload' if $scpDown;
if (not $user and not $userAny) {
help();
osh_exit 'ERR_MISSING_PARAMETER', "No user specified, if you want to add this server with any user, add --user-any";
osh_exit 'ERR_MISSING_PARAMETER', "No user specified, if any remote login was allowed, add --user-any";
}
if ($portAny and $port) {
@ -72,7 +72,7 @@ if ($portAny and $port) {
if (not $port and not $portAny) {
help();
osh_exit 'ERR_MISSING_PARAMETER', "No port specified, if you want to add this server with any port, add --port-any";
osh_exit 'ERR_MISSING_PARAMETER', "No port specified, if any remote port was allowed, add --port-any";
}
$fnret = OVH::Bastion::is_valid_group_and_existing(group => $group, groupType => "key");