Mark upgrade feature as manual. Remove related resources.

This commit is contained in:
Marco Vermeulen
2012-11-20 17:24:05 +00:00
parent c74459e5ae
commit 217b3b3106
4 changed files with 4 additions and 24 deletions

View File

@@ -1,5 +1,6 @@
Feature: Upgrade
@manual
Scenario: Upgrade an outdated installation
Given an initialised system
When I enter "gvm selfupdate"

View File

@@ -30,15 +30,15 @@ class VertxUtils {
def rm = new RouteMatcher()
rm.get("/") { req ->
req.response.sendFile('srv/scripts/install.sh')
req.response.sendFile('build/scripts/install.sh')
}
rm.get("/selfupdate") { req ->
req.response.sendFile('src/test/resources/selfupdate.sh')
req.response.sendFile('build/scripts/selfupdate.sh')
}
rm.get("/res") { req ->
req.response.sendFile('src/test/resources/res.zip')
req.response.sendFile('build/distributions/gvm-scripts.zip')
}
rm.get("/candidates") { req ->

View File

Binary file not shown.

View File

@@ -1,21 +0,0 @@
#!/bin/bash
echo "Updating gvm scripts..."
TMP_ZIP="/tmp/res.zip"
BIN_FOLDER="/tmp/gvm/bin"
echo "Creating $BIN_FOLDER"
mkdir -p "$BIN_FOLDER"
echo "Calling $GVM_SERVICE/res?platform=$PLATFORM"
curl -s "$GVM_SERVICE/res?platform=$PLATFORM" > "$TMP_ZIP"
echo "Unzip to $BIN_FOLDER"
unzip -qo "$TMP_ZIP" -d "$BIN_FOLDER"
rm "$TMP_ZIP"
chmod +x "$BIN_FOLDER"/*
echo ""
echo "Successfully upgraded GVM."
echo ""