From 332bdff0b0771b37fdfdde7fc09d5098cca2c6c2 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 5 May 2020 14:37:58 +0300 Subject: [PATCH] Remove news on login --- .gitignore | 3 ++- install-docker.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 723ef36..a3a978d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.idea \ No newline at end of file +.idea +authorized_keys \ No newline at end of file diff --git a/install-docker.sh b/install-docker.sh index 5b05338..974ee72 100755 --- a/install-docker.sh +++ b/install-docker.sh @@ -47,6 +47,11 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/too # Append custom config to zsh cat zshrc-append.txt >> ~/.zshrc +# Remove news on login +rm /etc/update-motd.d/10-help-text +rm /etc/update-motd.d/50-motd-news + + if [ ! -f ~/.ssh/id_rsa ]; then ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa fi