#!/bin/sh

. ./paths

echo 'Content-Type: text/plain'
echo 'Cache-control: no-cache'
echo 'Cache-control: no-store'
echo 'Pragma: no-cache'
echo 'Expires: 0'
echo ''

if [ -f "/tmp/webint_update.tar.gz" ]; then
	rm -f /tmp/webint_update.tar.gz
fi


wget -q -O /tmp/webint_update.tar.gz http://geckow.net/relook/releases/getversion.php?$QUERY_STRING

tar -xz -f /tmp/webint_update.tar.gz -C $PATH_DATAROOT

echo "ok"
