Skip to content

Instantly share code, notes, and snippets.

@Erisa
Created September 25, 2020 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Erisa/93bfa760d1bdfa8c6946e76328b4733c to your computer and use it in GitHub Desktop.
Save Erisa/93bfa760d1bdfa8c6946e76328b4733c to your computer and use it in GitHub Desktop.
Install krypton's kr client on Alpine Linux
#!/bin/sh
if [ $(id -u) -ne 0 ]
then echo "-- This script only works when run as root. --"
exit
fi
echo "-- installing dependancies: go make sudo git"
apk add go make sudo git
echo '-- setting up $GOPATH'
export GOPATH=$HOME/.go
mkdir -p $GOPATH
echo "-- downloading kr source"
go get github.com/kryptco/kr
echo "-- building and installing kr"
cd $GOPATH/src/github.com/kryptco/kr && make install && kr restart
echo "-- done! use 'kr pair' to get started."
echo "-- WARNING: kr on Alpine is a bit weird. i dont know why. if it breaks its not my fault."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment