This commit is contained in:
Luk Lu
2022-06-07 15:39:07 +08:00
parent 0ae13bf7ac
commit 8822da39fc
6 changed files with 1 additions and 12 deletions

View File

@@ -42,17 +42,6 @@ then
ln -s $SourcePath/$homescript $HomePath
done
popd
mkdir -p $HomePath/.ssh
chmod 700 $HomePath/.ssh
echo "--- Adding $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..."
cat $SourcePath/authorized_keys >> $HomePath/.ssh/authorized_keys
# if [ -e $HomePath/.ssh/authorized_keys ]
# then
# echo "--- Renaming $HomePath/.ssh/authorized_keys to authorized_keys.backup ..."
# mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup
# fi
# echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..."
# ln -s $SourcePath/authorized_keys $HomePath/.ssh/authorized_keys
else
echo "!!! Not existing $SourcePath or $HomePath, please try again."
fi