blob: dbca3c83cfcd2ea6c12c4619b862adcbc2808110 [file] [log] [blame]
Scott Baker4b37d1a2016-07-01 13:41:52 -07001#! /bin/bash
2
3display_usage() {
4 echo -e "\nUsage:\n$0 [xos-listen-port] \n"
5}
6
7if [ $# -lt 1 ]
8then
9 display_usage
10 exit 1
11fi
12
13echo "Sending rebuild request to XOS"
14STATUS=`curl -X POST 0.0.0.0:$1/api/utility/onboarding/xos/rebuild/ 2> /dev/null`
15if [[ "$STATUS" != "true" ]]; then
16 echo "Rebuild request failed"
17 exit -1
18fi
19
20echo "Rebuild request accepted"
21