We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d1682 commit 3f359e7Copy full SHA for 3f359e7
Monitoring/monitor-ontap-services/updateMonOntapServiceCFTemplate
@@ -0,0 +1,12 @@
1
+#!/bin/bash
2
+
3
+cp cloudformation.yaml cloudformation.yaml.bak
4
+sed -e '/ZipFile/,$d' cloudformation.yaml > cloudformation.yaml.tmp
5
+echo " ZipFile: |" >> cloudformation.yaml.tmp
6
+cat monitor_ontap_services.py | sed 's/^/ /' >> cloudformation.yaml.tmp
7
+if diff cloudformation.yaml cloudformation.yaml.tmp; then
8
+ echo "No changes detected"
9
+ exit 0
10
+fi
11
+echo "Updating cloudformation.yaml"
12
+mv cloudformation.yaml.tmp cloudformation.yaml
0 commit comments