Updater needs to pass the version instead of revision

This commit is contained in:
Girish Ramakrishnan
2014-11-20 16:57:01 -08:00
parent 63c775b0ae
commit aefb1f1c07
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -47,7 +47,11 @@ if [ -n "$PROVISION_RESTORE_URL" ]; then
fi
echo "Downloading box versions"
REVISION=$(curl --retry 5 --retry-delay 5 --max-time 600 -L "$PROVISION_BOX_VERSIONS_URL" | $JSON -D, "$PROVISION_VERSION,revision")
if [ "$PROVISION_VERSION" = "latest" ]; then
REVISION="origin/master"
else
REVISION=$(curl --retry 5 --retry-delay 5 --max-time 600 -L "$PROVISION_BOX_VERSIONS_URL" | $JSON -D, "$PROVISION_VERSION,revision")
fi
cd "$SRCDIR"
while true; do
+1 -1
View File
@@ -145,7 +145,7 @@ function update(callback) {
var args = {
appServerUrl: config.appServerUrl(),
fqdn: config.fqdn(),
revision: isDev() ? 'origin/master' : gBoxUpdateInfo.revision,
version: isDev() ? 'latest' : gBoxUpdateInfo.version,
token: config.token(),
tls: {
cert: fs.readFileSync(path.join(paths.NGINX_CERT_DIR, 'host.cert'), 'utf8'),