From a447d21a5c53490db2c6ff0d04b0b30f654e9b5c Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 22 Mar 2022 17:11:34 +0100 Subject: [PATCH] Hopefully copy .ssh/config right --- arch-config/scripts/arch-config.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch-config/scripts/arch-config.sh b/arch-config/scripts/arch-config.sh index 0eed7072..144a52f9 100755 --- a/arch-config/scripts/arch-config.sh +++ b/arch-config/scripts/arch-config.sh @@ -114,6 +114,7 @@ mkdir -p ~/old_dat/.easystroke mkdir -p ~/old_dat/.mozilla mkdir -p ~/old_dat/scripts mkdir -p ~/old_dat/.elvish +mkdir -p ~/old_dat/.ssh # make subdirectories mkdir -p ~/old_dat/.local/share @@ -152,6 +153,11 @@ if [[ -d ~/.doom.d ]]; then rsync -ah ~/.doom.d ~/old_dat/ fi +# .ssh folder +if [[ -d ~/.ssh ]]; then + rsync -ah ~/.ssh ~/old_dat/ +fi + # easystroke if [[ -d ~/.easystroke ]]; then 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/.elvish ~/ cp -r ~/config/.doom.d ~/ +cp -r ~/config/.ssh ~/ echo Copied folders #copy single files @@ -420,9 +427,9 @@ cat < temp && mv temp "$HOME/.ssh/config" -fi +#if ! grep -q "AddKeysToAgent yes" "$HOME/.ssh/config"; then +# echo 'AddKeysToAgent yes' | cat - "$HOME/.ssh/config" > temp && mv temp "$HOME/.ssh/config" +#fi # set permissions for sudoers.d to root only sudo chown root:root -R /etc/sudoers.d/