From 6e7af4b3058fb9bef63ed9c068422a22c87c397e Mon Sep 17 00:00:00 2001 From: Patrick Robertson Date: Fri, 22 Dec 2023 01:13:45 +0000 Subject: [PATCH] Update history.sh Add comment/documentation on why .bash_history is cleared Signed-off-by: Patrick Robertson --- static/history.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/history.sh b/static/history.sh index 1d33917f11..f23a07cf8d 100644 --- a/static/history.sh +++ b/static/history.sh @@ -1,5 +1,7 @@ #!/bin/sh +# Security measure: clear .bash_history by default on login +# For more info: https://github.com/nextcloud/vm/issues/2481#issuecomment-1529175048 truncate -s0 "$HOME/.bash_history" exit 0