diff options
author | Christian Hesse <mail@eworm.de> | 2024-04-23 14:30:42 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-04-29 23:02:48 +0200 |
commit | b0f58696f334c9c378229f68f7e5e6d69a4b6af7 (patch) | |
tree | c066364cefda9feef6acc78ebb1f12219912517e /mod/ssh-keys-import.rsc | |
parent | f1ad80873498e314bbc04f3f2be5feff33d7e9ff (diff) |
mod/ssh-keys-import: remove temporary directory
Diffstat (limited to 'mod/ssh-keys-import.rsc')
-rw-r--r-- | mod/ssh-keys-import.rsc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/ssh-keys-import.rsc b/mod/ssh-keys-import.rsc index e920762..6272a93 100644 --- a/mod/ssh-keys-import.rsc +++ b/mod/ssh-keys-import.rsc @@ -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; } } |