mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 17:23:22 +00:00
17 lines
324 B
Bash
Executable file
17 lines
324 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/
|