We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0ca80e commit 93624b1Copy full SHA for 93624b1
start.sh
@@ -8,18 +8,14 @@ containers=`docker ps -f status=running --format "{{.Names}}"`
8
for container in $listOfContainers
9
do
10
11
- if echo $containers |grep -q $container
+ if ! (echo $containers |grep -q $container )
12
then
13
- echo "$container online "
14
- message="Alright! The container $container is up ! \n \n"
15
- else
16
echo "$container offline"
17
message="Warning! The container $container is down ! \n \n"
18
19
- #exit 1
+ curl -H "Content-Type: application/json" \
+ -X POST \
+ -d "{\"username\": \"${username}\", \"content\": \"${message}\"}" $url
20
fi
21
- curl -H "Content-Type: application/json" \
22
- -X POST \
23
- -d "{\"username\": \"${username}\", \"content\": \"${message}\"}" $url
24
done
25
exit 0
0 commit comments