s/monitor_check_once.sh/test_acceptance.sh/
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
dig gourichon.org
|
|
||||||
7
service_definitions/public/gourichon_org/domain/test_acceptance.sh
Executable file
7
service_definitions/public/gourichon_org/domain/test_acceptance.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd -P "$(dirname "$(readlink -f "$0")" )"
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
dig gourichon.org | grep -E 'gourichon.org.\s+[0-9]*\s+IN\s+A\s+82.64.72.120'
|
||||||
@@ -43,7 +43,7 @@ then
|
|||||||
|
|
||||||
CRON_LINES+=( "0 0 * * * $SCRIPT_ROOT/run_and_output_only_on_error.sh $INFRA_ROOT/$MONITOR_SCRIPT_PATH # monitoring_crontask" )
|
CRON_LINES+=( "0 0 * * * $SCRIPT_ROOT/run_and_output_only_on_error.sh $INFRA_ROOT/$MONITOR_SCRIPT_PATH # monitoring_crontask" )
|
||||||
|
|
||||||
done 3< <( find */ -iname "monitor_check_once.sh" )
|
done 3< <( find */ -iname "test_acceptance.sh" )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,10 @@ function fail_one()
|
|||||||
|
|
||||||
while IFS="" read -u 3 -r MONITOR_SCRIPT_PATH
|
while IFS="" read -u 3 -r MONITOR_SCRIPT_PATH
|
||||||
do
|
do
|
||||||
|
echo >&2
|
||||||
|
echo >&2 "Will run: $MONITOR_SCRIPT_PATH"
|
||||||
"$MONITOR_SCRIPT_PATH" || { fail_one "$MONITOR_SCRIPT_PATH" ; }
|
"$MONITOR_SCRIPT_PATH" || { fail_one "$MONITOR_SCRIPT_PATH" ; }
|
||||||
done 3< <( find . -iname "monitor_check_once.sh" )
|
done 3< <( find . -iname "test_acceptance.sh" )
|
||||||
|
|
||||||
echo "Overall result: $RC"
|
echo "Overall result: $RC"
|
||||||
exit "$RC"
|
exit "$RC"
|
||||||
|
|||||||
Reference in New Issue
Block a user