fix(download):update the downloads files directory EE-2473 (#6734)

* update the downloads files directory
This commit is contained in:
sunportainer
2022-04-17 11:04:04 +08:00
committed by GitHub
parent 69c34cdf0c
commit da9ef7dfcf
6 changed files with 15 additions and 15 deletions

View File

@@ -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}"`;