teleport/build.assets/install
Ev Kontsevoy b2c12066a0 Updated getting started experience for systemd users
- Modified the default teleport.service to start without
  /etc/teleport.yaml
- Updated REAMDE for systemd unit
- Updated ./install script
2018-07-19 18:04:14 -07:00

20 lines
483 B
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 $BINDIR/ || exit 1
echo "Teleport binaries have been copied to $BINDIR"
echo "To configure the systemd service for Teleport take a look at examples/systemd/README.md"