Skip to content

Commit b10bef3

Browse files
[8.x] [Fleet] removed extraneous '/downloads' in path for curl commands (#204660) (#204779)
# Backport This will backport the following commits from `main` to `8.x`: - [[Fleet] removed extraneous &#x27;/downloads&#x27; in path for curl commands (#204660)](#204660) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Mason Herron","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-18T15:37:32Z","message":"[Fleet] removed extraneous '/downloads' in path for curl commands (#204660)\n\n## Summary\r\n\r\nRemoved the extra `/downloads` portion of the curl command, as it is\r\nalready returned in the base url.\r\nCloses #204462 \r\n\r\nBefore: \r\n\r\n![image](https://github.com/user-attachments/assets/5a156aca-ea2b-4703-97b3-f7a5e4ae6ab1)\r\n\r\nAfter: \r\n\r\n![image](https://github.com/user-attachments/assets/d5c9f0d4-1452-40c1-b8df-4473584ac288)","sha":"e29a14d623d1034f6ea12bce679a8fceb95b4cdc","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor"],"title":"[Fleet] removed extraneous '/downloads' in path for curl commands","number":204660,"url":"https://github.com/elastic/kibana/pull/204660","mergeCommit":{"message":"[Fleet] removed extraneous '/downloads' in path for curl commands (#204660)\n\n## Summary\r\n\r\nRemoved the extra `/downloads` portion of the curl command, as it is\r\nalready returned in the base url.\r\nCloses #204462 \r\n\r\nBefore: \r\n\r\n![image](https://github.com/user-attachments/assets/5a156aca-ea2b-4703-97b3-f7a5e4ae6ab1)\r\n\r\nAfter: \r\n\r\n![image](https://github.com/user-attachments/assets/d5c9f0d4-1452-40c1-b8df-4473584ac288)","sha":"e29a14d623d1034f6ea12bce679a8fceb95b4cdc"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204660","number":204660,"mergeCommit":{"message":"[Fleet] removed extraneous '/downloads' in path for curl commands (#204660)\n\n## Summary\r\n\r\nRemoved the extra `/downloads` portion of the curl command, as it is\r\nalready returned in the base url.\r\nCloses #204462 \r\n\r\nBefore: \r\n\r\n![image](https://github.com/user-attachments/assets/5a156aca-ea2b-4703-97b3-f7a5e4ae6ab1)\r\n\r\nAfter: \r\n\r\n![image](https://github.com/user-attachments/assets/d5c9f0d4-1452-40c1-b8df-4473584ac288)","sha":"e29a14d623d1034f6ea12bce679a8fceb95b4cdc"}}]}] BACKPORT--> Co-authored-by: Mason Herron <[email protected]>
1 parent 5f127c9 commit b10bef3

File tree

1 file changed

+5
-5
lines changed
  • x-pack/plugins/fleet/public/components/enrollment_instructions/standalone

1 file changed

+5
-5
lines changed

x-pack/plugins/fleet/public/components/enrollment_instructions/standalone/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ export const StandaloneInstructions = ({
2222
const { windows: windowsDownloadSourceProxyArgs, curl: curlDownloadSourceProxyArgs } =
2323
getDownloadSourceProxyArgs(downloadSourceProxy);
2424

25-
const linuxDebCommand = `curl -L -O ${downloadBaseUrl}/downloads/beats/elastic-agent/elastic-agent-${agentVersion}-amd64.deb ${curlDownloadSourceProxyArgs}
25+
const linuxDebCommand = `curl -L -O ${downloadBaseUrl}/beats/elastic-agent/elastic-agent-${agentVersion}-amd64.deb ${curlDownloadSourceProxyArgs}
2626
sudo dpkg -i elastic-agent-${agentVersion}-amd64.deb \nsudo systemctl enable elastic-agent \nsudo systemctl start elastic-agent`;
2727

28-
const linuxRpmCommand = `curl -L -O ${downloadBaseUrl}/downloads/beats/elastic-agent/elastic-agent-${agentVersion}-x86_64.rpm ${curlDownloadSourceProxyArgs}
28+
const linuxRpmCommand = `curl -L -O ${downloadBaseUrl}/beats/elastic-agent/elastic-agent-${agentVersion}-x86_64.rpm ${curlDownloadSourceProxyArgs}
2929
sudo rpm -vi elastic-agent-${agentVersion}-x86_64.rpm \nsudo systemctl enable elastic-agent \nsudo systemctl start elastic-agent`;
3030

31-
const linuxCommand = `curl -L -O ${downloadBaseUrl}/downloads/beats/elastic-agent/elastic-agent-${agentVersion}-linux-x86_64.tar.gz ${curlDownloadSourceProxyArgs}
31+
const linuxCommand = `curl -L -O ${downloadBaseUrl}/beats/elastic-agent/elastic-agent-${agentVersion}-linux-x86_64.tar.gz ${curlDownloadSourceProxyArgs}
3232
tar xzvf elastic-agent-${agentVersion}-linux-x86_64.tar.gz
3333
cd elastic-agent-${agentVersion}-linux-x86_64
3434
sudo ./elastic-agent install`;
3535

36-
const macCommand = `curl -L -O ${downloadBaseUrl}/downloads/beats/elastic-agent/elastic-agent-${agentVersion}-darwin-aarch64.tar.gz ${curlDownloadSourceProxyArgs}
36+
const macCommand = `curl -L -O ${downloadBaseUrl}/beats/elastic-agent/elastic-agent-${agentVersion}-darwin-aarch64.tar.gz ${curlDownloadSourceProxyArgs}
3737
tar xzvf elastic-agent-${agentVersion}-darwin-aarch64.tar.gz
3838
cd elastic-agent-${agentVersion}-darwin-aarch64
3939
sudo ./elastic-agent install`;
4040

4141
const windowsCommand = `$ProgressPreference = 'SilentlyContinue'
42-
Invoke-WebRequest -Uri ${downloadBaseUrl}/downloads/beats/elastic-agent/elastic-agent-${agentVersion}-windows-x86_64.zip -OutFile elastic-agent-${agentVersion}-windows-x86_64.zip ${windowsDownloadSourceProxyArgs}
42+
Invoke-WebRequest -Uri ${downloadBaseUrl}/beats/elastic-agent/elastic-agent-${agentVersion}-windows-x86_64.zip -OutFile elastic-agent-${agentVersion}-windows-x86_64.zip ${windowsDownloadSourceProxyArgs}
4343
Expand-Archive .\elastic-agent-${agentVersion}-windows-x86_64.zip -DestinationPath .
4444
cd elastic-agent-${agentVersion}-windows-x86_64
4545
.\\elastic-agent.exe install`;

0 commit comments

Comments
 (0)