Add -e to .sh scripts

This commit is contained in:
Sergey Dolin
2020-10-07 13:49:40 +05:00
parent 87d16c5f7d
commit 1d4f281899
83 changed files with 93 additions and 163 deletions

View File

@@ -1,3 +1,5 @@
#!/bin/bash -e
#Set ImageVersion and ImageOS env variables
echo ImageVersion=$IMAGE_VERSION | tee -a /etc/environment
echo ImageOS=$IMAGE_OS | tee -a /etc/environment
@@ -22,4 +24,4 @@ chmod -R 777 $AGENT_TOOLSDIRECTORY
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
# https://www.suse.com/support/kb/doc/?id=000016692
echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf
echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf