mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-05 16:22:06 +02:00
refactor: update curl commands to use -sSL for silent and follow redirects
This commit is contained in:
@@ -23,7 +23,7 @@ const ServerMonitorDocumentation: FunctionComponent<ComponentProps> = (
|
||||
language="bash"
|
||||
code={`
|
||||
# Install the agent
|
||||
curl -s ${HTTP_PROTOCOL}${HOST.toString()}/docs/static/scripts/infrastructure-agent/install.sh | sudo bash
|
||||
curl -sSL ${HTTP_PROTOCOL}${HOST.toString()}/docs/static/scripts/infrastructure-agent/install.sh | sudo bash
|
||||
|
||||
# Configure the agent (without proxy)
|
||||
sudo oneuptime-infrastructure-agent configure --secret-key=${props.secretKey.toString()} --oneuptime-url=${host}
|
||||
|
||||
@@ -7,16 +7,16 @@
|
||||
# Add these lines to: sudo crontab -e
|
||||
|
||||
# Run this on Reboot.
|
||||
@reboot sudo curl https://oneuptime.com/chart/install.sh | sudo bash -s thirdPartyBillingEnabled
|
||||
@reboot sudo curl -sSL https://oneuptime.com/chart/install.sh | sudo bash -s thirdPartyBillingEnabled
|
||||
|
||||
# Run this once every 24 hours.
|
||||
0 0 * * * sudo curl https://oneuptime.com/chart/install.sh | sudo bash -s thirdPartyBillingEnabled
|
||||
0 0 * * * sudo curl -sSL https://oneuptime.com/chart/install.sh | sudo bash -s thirdPartyBillingEnabled
|
||||
|
||||
|
||||
## FOR AWS EC2
|
||||
|
||||
# Run this on Reboot.
|
||||
@reboot sudo curl https://oneuptime.com/chart/install.sh | sudo bash -s thirdPartyBillingEnabled aws-ec2
|
||||
@reboot sudo curl -sSL https://oneuptime.com/chart/install.sh | sudo bash -s thirdPartyBillingEnabled aws-ec2
|
||||
|
||||
# Run this once every 24 hours.
|
||||
0 0 * * * sudo curl https://oneuptime.com/chart/install.sh | sudo bash -s thirdPartyBillingEnabled aws-ec2
|
||||
0 0 * * * sudo curl -sSL https://oneuptime.com/chart/install.sh | sudo bash -s thirdPartyBillingEnabled aws-ec2
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<!-- Content -->
|
||||
<div id="oss-terminal-content" class="px-5 py-4" style="min-height: 60px;">
|
||||
<code class="text-gray-300" style="font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace; font-size: 14px; line-height: 1.6;">
|
||||
<span style="color: #28c840;">$</span> curl <%= locals.homeUrl || 'https://oneuptime.com' %>/install.sh | bash
|
||||
<span style="color: #28c840;">$</span> curl -sSL <%= locals.homeUrl || 'https://oneuptime.com' %>/install.sh | bash
|
||||
</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@ The OneUptime Infrastructure Agent is a lightweight, open-source agent that coll
|
||||
### Installation
|
||||
|
||||
```
|
||||
curl -s https://oneuptime.com/docs/static/scripts/infrastructure-agent/install.sh | bash
|
||||
curl -sSL https://oneuptime.com/docs/static/scripts/infrastructure-agent/install.sh | bash
|
||||
```
|
||||
|
||||
### Configure the agent
|
||||
|
||||
@@ -135,7 +135,7 @@ By using OneUptime Cloud, you also support the continued development of the open
|
||||
|
||||
```bash
|
||||
# Quick start with one command
|
||||
curl -L https://oneuptime.com/install.sh | bash
|
||||
curl -sSL https://oneuptime.com/install.sh | bash
|
||||
```
|
||||
|
||||
For detailed installation guides, see:
|
||||
|
||||
Reference in New Issue
Block a user