From 2d4cdb3f2ad4909ff0970dff62850592938c48cd Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 17 Feb 2014 21:17:13 +0200 Subject: [PATCH] autodetect vesta version --- bin/v-update-dns-templates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-update-dns-templates b/bin/v-update-dns-templates index 677f2b66..3d3692c8 100755 --- a/bin/v-update-dns-templates +++ b/bin/v-update-dns-templates @@ -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"