Răsfoiți Sursa

autodetect vesta version

Serghey Rodin 12 ani în urmă
părinte
comite
2d4cdb3f2a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      bin/v-update-dns-templates

+ 1 - 1
bin/v-update-dns-templates

@@ -25,7 +25,7 @@ source $VESTA/conf/vesta.conf
 tmpdir=$(mktemp -d --dry-run)
 tmpdir=$(mktemp -d --dry-run)
 mkdir $tmpdir
 mkdir $tmpdir
 cd $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
 if [ "$?" -ne 0 ]; then
     echo "Error: can't download template.tar.gz"
     echo "Error: can't download template.tar.gz"
     log_event "$E_CONNECT" "$EVENT"
     log_event "$E_CONNECT" "$EVENT"