Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 106946b

Browse files
committed
update script
1 parent 0baff1c commit 106946b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

setup_workspace/setup_workspace.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212
#
1313
# Output: Generation of API and models based on Rapid7 Nexpose and InsightVM Swagger file
1414

15+
# NOTE: Pulling from endpoint no longer up to date; manually update version to match console prior to running
16+
LIB_VERSION=6.6.55
17+
1518
# Download InsightVM/Nexpose Console Version and update package in config.json
1619
#VERSION_URL="http://download2.rapid7.com/download/InsightVM/Rapid7Setup-Linux64.bin.version"
1720
#CONSOLE_VERSION=$(curl $VERSION_URL)
1821
#LIB_VERSION="$CONSOLE_VERSION"
19-
#sed -i '' "s/\"packageVersion\": \".*\"/\"packageVersion\": \"$LIB_VERSION\"/g" ./setup_workspace/config.json
20-
#echo "Library Version: $LIB_VERSION"
22+
sed -i '' "s/\"packageVersion\": \".*\"/\"packageVersion\": \"$LIB_VERSION\"/g" ./setup_workspace/config.json
23+
echo "Library Version: $LIB_VERSION"
2124

2225

2326
# Environment variable for branch name
@@ -26,7 +29,6 @@
2629
# Download swagger file
2730
API_FILE_DIR="api-files/"
2831
SWAGGER_FILE=$API_FILE_DIR"console-swagger.json"
29-
#SWAGGER_URL="https://help.rapid7.com/insightvm/en-us/api/api.json"
3032
SWAGGER_URL="https://$2:3780/api/3/json"
3133
wget --no-check-certificate $SWAGGER_URL -O $SWAGGER_FILE
3234

@@ -79,5 +81,5 @@ fi
7981
LC_ALL=C find . -type f -not -path "./.git/*" -exec sed -i '' "s/$2:3780/localhost:3780/g" {} +
8082

8183
git checkout -b release/$CONSOLE_VERSION
82-
#git add *
83-
#git commit -a -m "Update generated library to version: $LIB_VERSION"
84+
git add *
85+
git commit -a -m "Update generated library to version: $LIB_VERSION"

0 commit comments

Comments
 (0)