File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,18 +20,6 @@ coreos:
2020 units:
2121 - name: etcd.service
2222 command: start
23- - name: upgrade-fleet-091.service
24- command: start
25- content: |
26- [Unit]
27- Description=Upgrade fleet if system fleet is v0.9.1, which has a known bug
28- Before=fleet.service
29- ConditionPathIsSymbolicLink=!/etc/systemd/system/fleet.service.d/99-upgrade-fleet-091.conf
30-
31- [Service]
32- ExecStart=/usr/bin/bash -c 'if fleetd --version | grep -q 0.9.1; then curl -sSL --retry 5 --retry-delay 2 -o /opt/bin/fleetd-0.9.2 https://s3-us-west-2.amazonaws.com/opdemand/fleetd-v0.9.2 && chmod +x /opt/bin/fleetd-0.9.2 && mkdir -p /etc/systemd/system/fleet.service.d/ && ln -sf /opt/conf/fleetd-092-custom-binary.conf /etc/systemd/system/fleet.service.d/99-upgrade-fleet-091.conf; else rm -f /etc/systemd/system/fleet.service.d/99-upgrade-fleet-091.conf; fi'
33- RemainAfterExit=yes
34- Type=oneshot
3523 - name: docker-tcp.socket
3624 command: start
3725 enable: true
@@ -208,8 +196,3 @@ write_files:
208196 [Service]
209197 ExecStart=
210198 ExecStart=/usr/sbin/ntpd -g -n -f /var/lib/ntp/ntp.drift
211- - path: /opt/conf/fleetd-092-custom-binary.conf
212- content: |
213- [Service]
214- ExecStart=
215- ExecStart=/opt/bin/fleetd-0.9.2
You can’t perform that action at this time.
0 commit comments