mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
mod/ssh-keys-import: remove temporary directory
This commit is contained in:
parent
f1ad808734
commit
b0f58696f3
1 changed files with 2 additions and 0 deletions
|
@ -59,8 +59,10 @@
|
|||
/user/ssh-keys/import public-key-file=$FileName user=$User;
|
||||
$LogPrint info $0 ("Imported ssh public key (" . $KeyVal->2 . ", " . $KeyVal->0 . ", " . \
|
||||
"MD5:" . $FingerPrintMD5 . ") for user '" . $User . "'.");
|
||||
/file/remove "tmpfs/ssh-keys-import";
|
||||
} on-error={
|
||||
$LogPrint warning $0 ("Failed importing key.");
|
||||
/file/remove "tmpfs/ssh-keys-import";
|
||||
:return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue