This commit is contained in:
陆柯 2022-11-18 18:59:42 +08:00
parent ea5a08a72b
commit 41d70fc8dd
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ echo
echo "=== Making dir /faronear/fon"
mkdir -p /faronear/fon
chmod 755 /faronear
chmod 755 /faronear # 确保其他用户能够读取 /faronear/fon/nixhome/*
echo
echo "=== Git cloning to /faronear/fon/sysconfig"

View File

@ -89,6 +89,7 @@ then
then
echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..."
ln -s $SourcePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys
sudo chmod 644 $HomePath/.ssh/authorized_keys # 确保其他用户能读取 nixhome/.ssh/authorized_keys
elif [ "$CopyOrLinkOrOmitAuthorizedKeys" = 'a' ]
then
echo "--- Copying $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..."