Skip to content

Commit 0e88976

Browse files
committed
work on ubuntu now
1 parent ed54f83 commit 0e88976

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/v-update-web-templates

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@ source $VESTA/conf/vesta.conf
2121
# Action #
2222
#----------------------------------------------------------#
2323

24+
# Find out OS name
25+
if [ -e "/etc/redhat-release" ]; then
26+
os="rhel"
27+
else
28+
os="ubuntu"
29+
fi
30+
2431
# Get new archive
2532
tmpdir=$(mktemp -d --dry-run)
2633
mkdir $tmpdir
2734
cd $tmpdir
28-
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
2936
if [ "$?" -ne 0 ]; then
3037
echo "Error: can't download template.tar.gz"
3138
log_event "$E_CONNECT" "$EVENT"

0 commit comments

Comments
 (0)