mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 05:49:40 +02:00
fix(download):update the downloads files directory EE-2473 (#6734)
* update the downloads files directory
This commit is contained in:
parent
69c34cdf0c
commit
da9ef7dfcf
6 changed files with 15 additions and 15 deletions
|
@ -10,6 +10,11 @@ import { EdgeProperties, Platform } from './types';
|
|||
|
||||
const commandsByOs = {
|
||||
linux: [
|
||||
{
|
||||
id: 'k8s',
|
||||
label: 'Kubernetes',
|
||||
command: buildKubernetesCommand,
|
||||
},
|
||||
{
|
||||
id: 'swarm',
|
||||
label: 'Docker Swarm',
|
||||
|
@ -20,11 +25,6 @@ const commandsByOs = {
|
|||
label: 'Docker Standalone',
|
||||
command: buildLinuxStandaloneCommand,
|
||||
},
|
||||
{
|
||||
id: 'k8s',
|
||||
label: 'Kubernetes',
|
||||
command: buildKubernetesCommand,
|
||||
},
|
||||
],
|
||||
win: [
|
||||
{
|
||||
|
@ -67,7 +67,7 @@ export function Scripts({
|
|||
|
||||
useEffect(() => {
|
||||
if (!commandsByOs[os].find((p) => p.id === platform)) {
|
||||
onPlatformChange('standalone');
|
||||
onPlatformChange('swarm');
|
||||
}
|
||||
}, [os, platform, onPlatformChange]);
|
||||
|
||||
|
@ -271,7 +271,7 @@ function buildKubernetesCommand(
|
|||
? `PORTAINER_EDGE_ID=$(${edgeIdScript}) \n\n`
|
||||
: '';
|
||||
|
||||
return `${idEnvVar}curl https://downloads.portainer.io/portainer-ee${agentShortVersion}-edge-agent-setup.sh |
|
||||
return `${idEnvVar}curl https://downloads.portainer.io/ce${agentShortVersion}/portainer-edge-agent-setup.sh |
|
||||
bash -s -- "${
|
||||
!edgeIdScript && edgeId ? edgeId : '$PORTAINER_EDGE_ID'
|
||||
}" "${edgeKey}" "${allowSelfSignedCerts ? '1' : '0'}" "${agentSecret}"`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue