We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed54f83 commit 0e88976Copy full SHA for 0e88976
bin/v-update-web-templates
@@ -21,11 +21,18 @@ source $VESTA/conf/vesta.conf
21
# Action #
22
#----------------------------------------------------------#
23
24
+# Find out OS name
25
+if [ -e "/etc/redhat-release" ]; then
26
+ os="rhel"
27
+else
28
+ os="ubuntu"
29
+fi
30
+
31
# Get new archive
32
tmpdir=$(mktemp -d --dry-run)
33
mkdir $tmpdir
34
cd $tmpdir
-wget http://c.vestacp.com/0.9.8/rhel/templates.tar.gz -q
35
+wget http://c.vestacp.com/$VERSION/$os/templates.tar.gz -q
36
if [ "$?" -ne 0 ]; then
37
echo "Error: can't download template.tar.gz"
38
log_event "$E_CONNECT" "$EVENT"
0 commit comments