Skip to content

Commit 67e28bc

Browse files
authored
Merge pull request #1684 from rancher-sandbox/k3s
Don't repeatedly download get.k3s.io
2 parents 643bfcd + 5010d35 commit 67e28bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/k3s.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ provision:
3939
- mode: system
4040
script: |
4141
#!/bin/sh
42-
curl -sfL https://get.k3s.io | sh -
43-
42+
if [ ! -d /var/lib/rancher/k3s ]; then
43+
curl -sfL https://get.k3s.io | sh -
44+
fi
4445
probes:
4546
- script: |
4647
#!/bin/bash

0 commit comments

Comments
 (0)