Created
September 25, 2020 19:34
-
-
Save Erisa/93bfa760d1bdfa8c6946e76328b4733c to your computer and use it in GitHub Desktop.
Install krypton's kr client on Alpine Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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