File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17+ on_exit () {
18+
19+ # # Changing back to original value
20+ sed -i ' /OPENEBS_IO_ENABLE_ANALYTICS/!b;n;c\ value: "true"' deploy/kubectl/openebs-nfs-provisioner.yaml
21+ }
22+
23+ trap ' on_exit' EXIT
24+
1725sed -i ' s/#- name: BackendStorageClass/- name: BackendStorageClass/' deploy/kubectl/openebs-nfs-provisioner.yaml
1826sed -i ' s/# value: "openebs-hostpath"/ value: "openebs-hostpath"/' deploy/kubectl/openebs-nfs-provisioner.yaml
19-
27+ # # !b negates the previous address and breaks out of any processing, end the sed commands,
28+ # # n prints the current line and reads the next line into pattern space,
29+ # # c changes the current line to the string following command
30+ sed -i ' /OPENEBS_IO_ENABLE_ANALYTICS/!b;n;c\ value: "false"' deploy/kubectl/openebs-nfs-provisioner.yaml
2031kubectl apply -f deploy/kubectl/openebs-nfs-provisioner.yaml
2132
2233function waitForDeployment() {
You can’t perform that action at this time.
0 commit comments