From dacd02759d0e6138f787ede8da5ac698c30e3b47 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 18 Jun 2022 12:07:31 +0800 Subject: [PATCH] u --- home-config.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home-config.sh b/home-config.sh index bab61d6..136fe23 100755 --- a/home-config.sh +++ b/home-config.sh @@ -69,6 +69,10 @@ then then mkdir -p $HomePath/.ssh chmod 700 $HomePath/.ssh + if [ -L $HomePath/.ssh/authorized_keys ] + then + mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup + fi cat $SourcePath/.ssh/authorized_keys >> $HomePath/.ssh/authorized_keys chmod 600 $HomePath/.ssh/authorized_keys fi