autodetect vesta version

This commit is contained in:
Serghey Rodin
2014-02-17 21:17:13 +02:00
parent 11d93a0f87
commit 2d4cdb3f2a

View File

@@ -25,7 +25,7 @@ source $VESTA/conf/vesta.conf
tmpdir=$(mktemp -d --dry-run)
mkdir $tmpdir
cd $tmpdir
wget http://c.vestacp.com/0.9.8/rhel/templates.tar.gz -q
wget http://c.vestacp.com/$VERSION/rhel/templates.tar.gz -q
if [ "$?" -ne 0 ]; then
echo "Error: can't download template.tar.gz"
log_event "$E_CONNECT" "$EVENT"