Browse Source

Tentative to setup pass repo

master
GoFish 5 years ago
parent
commit
fe54705920
  1. 15
      windows_to_go.ps1

15
windows_to_go.ps1

@ -32,6 +32,21 @@ refreshenv
gpg --keyserver hkp://pool.sks-keyservers.net --recv-key EE27143FD4C1C95A86B4D83D806539FA8D18CA37 gpg --keyserver hkp://pool.sks-keyservers.net --recv-key EE27143FD4C1C95A86B4D83D806539FA8D18CA37
#The key needs to be trusted manually! With `gpg --edit-key EE27143FD4C1C95A86B4D83D806539FA8D18CA37` - `trust` - `5` - `save` #The key needs to be trusted manually! With `gpg --edit-key EE27143FD4C1C95A86B4D83D806539FA8D18CA37` - `trust` - `5` - `save`
# Setup SSH key for pass
if (-not (Test-Path -Path "$env:userprofile\.ssh" -PathType Container)) {
mkdir "$env:userprofile\.ssh"
curl https://git.axel.tripier.fr/GoFish/boxstarter-win10/raw/branch/master/windows_to_go_ssh_pass_ed25519.asc | gpg -d > "$env:userprofile\.ssh\windows_to_go_ssh_pass_ed25519"
}
# Clone pass repo for QtPass
set GIT_SSH_COMMAND=ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i "$env:userprofile\.ssh\windows_to_go_ssh_pass_ed25519"
if (Test-Path -Path "$env:userprofile\password-store" -PathType Container) {
cd "$env:userprofile\password-store"
git pull
} else {
git clone ssh://git@git.axel.tripier.fr:2225/GoFish/pass-store.git "$env:userprofile\password-store"
}
# Browser # Browser
choco upgrade -y $cache firefox --params "/l:en-US /NoTaskbarShortcut /NoDesktopShortcut" choco upgrade -y $cache firefox --params "/l:en-US /NoTaskbarShortcut /NoDesktopShortcut"
choco upgrade -y $cache setdefaultbrowser choco upgrade -y $cache setdefaultbrowser

Loading…
Cancel
Save