-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating release process to fit documentation
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This file is distributed with every binary Teleport tarball | ||
BINDIR=/usr/local/bin | ||
VARDIR=/var/lib/teleport | ||
WEBDIR=/usr/local/share/teleport | ||
|
||
# | ||
# sudo make install: installs Teleport into a UNIX-like OS | ||
# | ||
.PHONY: install | ||
install: sudo | ||
mkdir -p $(VARDIR) $(WEBDIR) $(BINDIR) | ||
cp -f teleport tctl tsh $(BINDIR)/ | ||
cp -fr app index.html $(WEBDIR)/ | ||
|
||
# | ||
# sudo make uninstall: removes Teleport | ||
# | ||
.PHONY: uninstall | ||
uninstall: sudo | ||
rm -rf $(VARDIR) $(WEBDIR) $(BINDIR)/tctl $(BINDIR)/teleport $(BINDIR)/tsh | ||
|
||
|
||
# helper: makes sure it runs as root | ||
.PHONY:sudo | ||
sudo: | ||
@if [ $$(id -u) != "0" ]; then \ | ||
echo "ERROR: You must be root" && exit 1 ;\ | ||
fi |