Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

make dcos-diagnostics-runner-config fix package independent #2840

Merged
merged 2 commits into from
May 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion parts/dcos/bstrap/dcoscustomdata111.t
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runcmd: PREPROVISION_EXTENSION
- [ systemctl, restart, systemd-journald.service ]
- [ systemctl, restart, docker.service ]
- [ bash, /tmp/dcos/dcos_install.sh, ROLENAME ]
- [ sed, -i.bak, "99 s/1s/10s/", /opt/mesosphere/packages/dcos-config--setup_db35841c60c3f46815fbca1f13d18618dd05dc7a/etc/dcos-diagnostics-runner-config.json ]
- [ bash, /opt/azure/dcos/diagnostics_fix.sh ]
write_files:
- content: |
[Unit]
Expand Down Expand Up @@ -85,6 +85,17 @@ write_files:
owner: root
path: /opt/azure/dcos/environment
permissions: '0644'
- content: |
#!/bin/bash

for f in /opt/mesosphere/packages/dcos-config--setup_*/etc/dcos-diagnostics-runner-config.json; do
if [ -e $f ]; then
sed -i.bak "99 s/1s/10s/" $f
fi
done
owner: root
path: /opt/azure/dcos/diagnostics_fix.sh
permissions: '0744'
- content: 'PROVISION_STR'
path: /opt/azure/containers/provision.sh
permissions: "0744"
Expand Down