refactor: update curl commands to use -sSL for silent and follow redirects

This commit is contained in:
Nawaz Dhandala
2026-03-06 13:21:55 +00:00
parent 7162c8fbca
commit 9d0afe0d36
5 changed files with 8 additions and 8 deletions

View File

@@ -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}

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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: