mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 17:23:22 +00:00
6d83fed8d7
* Include tbot binary in Teleport packages and installs This includes the tbot binary in .rpm, .deb, and .pkg distributions, and ensures the binary is installed using the `install` script in .tar.gz packages. * Remove tbot from macOS client-only builds
40 lines
1 KiB
Bash
Executable file
40 lines
1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
#
|
|
# the directory where Teleport binaries will be located
|
|
#
|
|
BINDIR=/usr/local/bin
|
|
|
|
#
|
|
# the directory where Teleport will keep its state/data
|
|
#
|
|
VARDIR=/var/lib/teleport
|
|
|
|
[ ! $(id -u) != "0" ] || { echo "ERROR: You must be root"; exit 1; }
|
|
cd $(dirname $0)
|
|
mkdir -p $VARDIR $BINDIR
|
|
cp -f teleport tctl tsh tbot $BINDIR/ || exit 1
|
|
|
|
#
|
|
# What operating system is the user running?
|
|
#
|
|
unameOut="$(uname -s)"
|
|
case "${unameOut}" in
|
|
Linux*) machine=linux;;
|
|
Darwin*) machine=darwin;;
|
|
CYGWIN*) machine=cygwin;;
|
|
MINGW*) machine=minGw;;
|
|
*) machine="UNKNOWN:${unameOut}"
|
|
esac
|
|
|
|
echo "Teleport binaries have been copied to $BINDIR"
|
|
echo ""
|
|
echo "Thanks for installing Teleport."
|
|
echo ""
|
|
echo "Is it OK if we collect some info about your install?"
|
|
echo "Please run this command to send in a survey."
|
|
echo "Optional: Replace email to join our newsletter and get a swag package."
|
|
echo "$ curl -X POST https://usage.teleport.dev -F OS=${machine} -F use-case=\"access my ...\" -F email=\"alice@example.com\""
|
|
echo ""
|
|
echo "Otherwise, ignore!"
|