u
This commit is contained in:
parent
eb2bc570b7
commit
c7facbfcbf
@ -7,7 +7,7 @@ else
|
|||||||
echo "Configure private home settings"
|
echo "Configure private home settings"
|
||||||
echo "Usage: setup.sh [Config-Source-Path] [User-Home-Path] [--AdotMode]"
|
echo "Usage: setup.sh [Config-Source-Path] [User-Home-Path] [--AdotMode]"
|
||||||
echo
|
echo
|
||||||
echo "=== Enter config <<SourcePath>> (leave blank for [/Users/luk.lu]/faronear/fon/sysconfig/nixhome):"
|
echo "=== Enter config <<SourcePath>> or leave <<blank>> for [/Users/luk.lu]/faronear/fon/sysconfig/nixhome):"
|
||||||
read -p ">>> " SourcePath
|
read -p ">>> " SourcePath
|
||||||
if [ ! $SourcePath ]
|
if [ ! $SourcePath ]
|
||||||
then
|
then
|
||||||
@ -65,7 +65,7 @@ then
|
|||||||
rm -fr $HomePath/.ssh/authorized_keys.backup
|
rm -fr $HomePath/.ssh/authorized_keys.backup
|
||||||
mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup
|
mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup
|
||||||
ln -s $SourcePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys
|
ln -s $SourcePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys
|
||||||
elif [ $CopyOrLinkOrOmitAuthorizedKeys = 'a']
|
elif [ $CopyOrLinkOrOmitAuthorizedKeys = 'a' ]
|
||||||
then
|
then
|
||||||
mkdir -p $HomePath/.ssh
|
mkdir -p $HomePath/.ssh
|
||||||
chmod 700 $HomePath/.ssh
|
chmod 700 $HomePath/.ssh
|
||||||
|
Loading…
Reference in New Issue
Block a user