Skip to content

Commit 12e79a4

Browse files
committed
Merge pull request #3594 from mboersma/fleetd-092-reboot-fix
fix(user-data): update fleetd 0.92 to /opt so it survives reboots
2 parents fa5d130 + a36c783 commit 12e79a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

contrib/coreos/user-data.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ coreos:
2929
ConditionPathIsSymbolicLink=!/etc/systemd/system/fleet.service.d/99-upgrade-fleet-091.conf
3030

3131
[Service]
32-
ExecStart=/usr/bin/bash -c 'if fleetd --version | grep -q 0.9.1; then curl -sSL --retry 5 --retry-delay 2 -o /run/deis/bin/fleetd-0.9.2 https://s3-us-west-2.amazonaws.com/opdemand/fleetd-v0.9.2 && chmod +x /run/deis/bin/fleetd-0.9.2 && mkdir -p /etc/systemd/system/fleet.service.d/ && ln -s /run/deis/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'
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'
3333
RemainAfterExit=yes
3434
Type=oneshot
3535
- name: stop-update-engine.service
@@ -195,8 +195,8 @@ write_files:
195195
[Service]
196196
ExecStart=
197197
ExecStart=/usr/sbin/ntpd -g -n -f /var/lib/ntp/ntp.drift
198-
- path: /run/deis/conf/fleetd-092-custom-binary.conf
198+
- path: /opt/conf/fleetd-092-custom-binary.conf
199199
content: |
200200
[Service]
201201
ExecStart=
202-
ExecStart=/run/deis/bin/fleetd-0.9.2
202+
ExecStart=/opt/bin/fleetd-0.9.2

0 commit comments

Comments
 (0)