This commit is contained in:
陆柯 2022-03-31 14:15:43 +08:00
parent 91cacfecec
commit 1edf66b260

View File

@ -50,8 +50,8 @@ then
fi fi
if [ -e $HomePath/.ssh/authorized_keys ] if [ -e $HomePath/.ssh/authorized_keys ]
then then
echo "--- Removing $Homepath/.ssh/authorized_keys ..." echo "--- Removing $HomePath/.ssh/authorized_keys ..."
mv $Homepath/.ssh/authorized_keys $Homepath/.ssh/authorized_keys.backup mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup
fi fi
echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..."
ln -s $SourcePath/authorized_keys $HomePath/.ssh/authorized_keys ln -s $SourcePath/authorized_keys $HomePath/.ssh/authorized_keys