Skip to content

Commit

Permalink
local: ssh-bootstrap target stack branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihowl committed Dec 15, 2024
1 parent efd08ee commit 6154ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ssh-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ original_url=$(git remote get-url origin)
# Reset all multiplexed connection to be sure.
ssh -O exit "$target_spec"
ssh -tA "$target_spec" "/bin/true"
ssh -tA "$target_spec" "yum install -y git"
rsync ~/./.gitconfig_credentials "$target_spec:~/.gitconfig_credentials"
rsync ~/./.color/current "$target_spec:~/.color/current" --rsync-path "mkdir -p ~/.color && rsync"
ssh -tA "$target_spec" "git clone '$original_url' ~/.dotfiles; cd ~/.dotfiles && DOTFILES_PROFILE=minimal ./script/bootstrap"
ssh -tA "$target_spec" "git clone -b kaihowl/stack '$original_url' ~/.dotfiles; cd ~/.dotfiles && DOTFILES_PROFILE=minimal ./script/bootstrap"
ssh -tA "$target_spec" "mkdir -p /etc/ssh/sshd_config.d/ && echo 'StreamLocalBindUnlink yes' > /etc/ssh/sshd_config.d/localbindunlink.conf && sudo systemctl reload sshd"
echo "Done. Final cleanup."

0 comments on commit 6154ae9

Please sign in to comment.