mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
work on ubuntu now
This commit is contained in:
parent
ed54f83795
commit
0e8897648c
1 changed files with 8 additions and 1 deletions
|
@ -21,11 +21,18 @@ source $VESTA/conf/vesta.conf
|
||||||
# Action #
|
# Action #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
# Find out OS name
|
||||||
|
if [ -e "/etc/redhat-release" ]; then
|
||||||
|
os="rhel"
|
||||||
|
else
|
||||||
|
os="ubuntu"
|
||||||
|
fi
|
||||||
|
|
||||||
# Get new archive
|
# Get new archive
|
||||||
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/$os/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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue