Update bootstrap-linux.sh
This commit is contained in:
parent
7d71468017
commit
f1bd004c15
|
@ -28,26 +28,28 @@ fi
|
|||
if echo $OSTYPE | grep linux-android.*; then
|
||||
# Assuming that you ibstalled wget and curl
|
||||
echo "==> Installing dependencies..."
|
||||
pkg install man git nano gnupg openssh proot resolv-conf #python nodejs
|
||||
pkg install -y man git nano gnupg openssh proot resolv-conf asciinema #python nodejs
|
||||
|
||||
# Clone our stuff
|
||||
echo "==> Cloning the dotfiles repo"
|
||||
git clone https://github.com/AndreiJirohHaliliDev2006/.dotfiles.git
|
||||
cd .dotfiles && git clone https://$GH_USERNAME:$GH_PAT@gitlab.com/AndreiJirohHaliliDev2006/dotfiles-secrets secrets && cd ~ && chmod 600 .dotfiles/secrets
|
||||
cd .dotfiles && git clone https://$GH_USERNAME:$GH_PAT@gitlab.com/AndreiJirohHaliliDev2006/dotfiles-secrets secrets && chmod 600 $HOME/.dotfiles/secrets
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "❌ That kinda sus, but only Andrei Jiroh can proceed!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ~
|
||||
|
||||
# Importing our SSH keys
|
||||
echo "==> Checking if ~/.ssh exists..."
|
||||
mkdir ~/.ssh && echo "We made that directory for you." || echo "warning: ~/.ssh exists!"
|
||||
echo "==> Copying SSH keys"
|
||||
cp .dotfiles/secrets/ssh/github-personal ~/.ssh/github-personal
|
||||
cp .dotfiles/secrets/ssh/github-personal.pub ~/.ssh/github-personal.pub
|
||||
cp .dotfiles/secrets/ssh/launchpad ~/.ssh/launchpad
|
||||
cp .dotfiles/secrets/ssh/launchpad.pub ~/.ssh/launchpad.pub
|
||||
cp $HOME/.dotfiles/secrets/ssh/github-personal ~/.ssh/github-personal
|
||||
cp $HOME/.dotfiles/secrets/ssh/github-personal.pub ~/.ssh/github-personal.pub
|
||||
cp $HOME/.dotfiles/secrets/ssh/launchpad ~/.ssh/launchpad
|
||||
cp $HOME/.dotfiles/secrets/ssh/launchpad.pub ~/.ssh/launchpad.pub
|
||||
chmod 600 ~/.ssh/launchpad
|
||||
chmod 600 ~/.ssh/github-personal
|
||||
#echo "==> Generating OpenSSH client config..."
|
||||
|
|
Loading…
Reference in New Issue