https://github.com/nnxmms/teleport-proxy-update
Bash script for automatically updating a Teleport Proxy instance.
https://github.com/nnxmms/teleport-proxy-update
bash teleport-tools
Last synced: about 2 months ago
JSON representation
Bash script for automatically updating a Teleport Proxy instance.
- Host: GitHub
- URL: https://github.com/nnxmms/teleport-proxy-update
- Owner: nnxmms
- Created: 2025-01-07T08:52:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-17T19:00:02.000Z (over 1 year ago)
- Last Synced: 2025-01-29T17:15:01.249Z (over 1 year ago)
- Topics: bash, teleport-tools
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Teleport-Proxy-Update
> Date: 07.01.2024
This script can be used to automatically update a Teleport instance to the newest release. It retrieves the latest version and performs the update only if a newer version is available.
## Usage
You can use the script like this:
```bash
curl https://raw.githubusercontent.com/nnxmms/Teleport-Proxy-Update/refs/heads/main/update-teleport-proxy.sh | bash
```
By default, the `EDITION` is set to `oss`, which is the Community edition of Teleport.
## Available Editions
You can specify the desired edition using the `-e` or `--edition` parameter. The following editions are supported:
- oss (default): Community Edition
- cloud: Cloud Edition
- enterprise: Enterprise Edition
### Example usage for a specific edition:
```bash
curl https://raw.githubusercontent.com/nnxmms/Teleport-Proxy-Update/refs/heads/main/update-teleport-proxy.sh | bash -s -- --edition cloud
```
or
```bash
curl https://raw.githubusercontent.com/nnxmms/Teleport-Proxy-Update/refs/heads/main/update-teleport-proxy.sh | bash -s -- -e enterprise
```
## Automate with Cron
To run the script automatically e.g. every day at 03:00 AM, you can use the following cron job:
### Update Teleport Proxy
```bash
0 3 * * * curl https://raw.githubusercontent.com/nnxmms/Teleport-Proxy-Update/refs/heads/main/update-teleport-proxy.sh | bash
```
### Update Teleport Proxy (Specific Edition)
To specify a particular edition (e.g., cloud), modify the cron job as follows:
```bash
0 3 * * * curl https://raw.githubusercontent.com/nnxmms/Teleport-Proxy-Update/refs/heads/main/update-teleport-proxy.sh | bash -s -- --edition cloud
```