Hopefully copy .ssh/config right
This commit is contained in:
parent
fe7d7c83e2
commit
a447d21a5c
@ -114,6 +114,7 @@ mkdir -p ~/old_dat/.easystroke
|
|||||||
mkdir -p ~/old_dat/.mozilla
|
mkdir -p ~/old_dat/.mozilla
|
||||||
mkdir -p ~/old_dat/scripts
|
mkdir -p ~/old_dat/scripts
|
||||||
mkdir -p ~/old_dat/.elvish
|
mkdir -p ~/old_dat/.elvish
|
||||||
|
mkdir -p ~/old_dat/.ssh
|
||||||
|
|
||||||
# make subdirectories
|
# make subdirectories
|
||||||
mkdir -p ~/old_dat/.local/share
|
mkdir -p ~/old_dat/.local/share
|
||||||
@ -152,6 +153,11 @@ if [[ -d ~/.doom.d ]]; then
|
|||||||
rsync -ah ~/.doom.d ~/old_dat/
|
rsync -ah ~/.doom.d ~/old_dat/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# .ssh folder
|
||||||
|
if [[ -d ~/.ssh ]]; then
|
||||||
|
rsync -ah ~/.ssh ~/old_dat/
|
||||||
|
fi
|
||||||
|
|
||||||
# easystroke
|
# easystroke
|
||||||
if [[ -d ~/.easystroke ]]; then
|
if [[ -d ~/.easystroke ]]; then
|
||||||
rsync -ah ~/.easystroke ~/old_dat/
|
rsync -ah ~/.easystroke ~/old_dat/
|
||||||
@ -202,6 +208,7 @@ cp -r ~/config/.mozilla/firefox/default-release/* ~/.mozilla/firefox/*.default-r
|
|||||||
cp -r ~/config/.easystroke ~/
|
cp -r ~/config/.easystroke ~/
|
||||||
cp -r ~/config/.elvish ~/
|
cp -r ~/config/.elvish ~/
|
||||||
cp -r ~/config/.doom.d ~/
|
cp -r ~/config/.doom.d ~/
|
||||||
|
cp -r ~/config/.ssh ~/
|
||||||
echo Copied folders
|
echo Copied folders
|
||||||
|
|
||||||
#copy single files
|
#copy single files
|
||||||
@ -420,9 +427,9 @@ cat <<EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# automatically add ssh keys to agent
|
# automatically add ssh keys to agent
|
||||||
if ! grep -q "AddKeysToAgent yes" "$HOME/.ssh/config"; then
|
#if ! grep -q "AddKeysToAgent yes" "$HOME/.ssh/config"; then
|
||||||
echo 'AddKeysToAgent yes' | cat - "$HOME/.ssh/config" > temp && mv temp "$HOME/.ssh/config"
|
# echo 'AddKeysToAgent yes' | cat - "$HOME/.ssh/config" > temp && mv temp "$HOME/.ssh/config"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# set permissions for sudoers.d to root only
|
# set permissions for sudoers.d to root only
|
||||||
sudo chown root:root -R /etc/sudoers.d/
|
sudo chown root:root -R /etc/sudoers.d/
|
||||||
|
Loading…
Reference in New Issue
Block a user