You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash |
|
test=`/usr/bin/curl -s -o /dev/null -w "%{http_code}" http://localhost | awk {'print $1'}` |
|
|
|
if [ "$test" == "200" ] || [ "$test" == "302" ] || [ "$test" == "301" ]; then |
|
exit "$?" |
|
else |
|
exit 1 |
|
fi
|
|
|