File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,8 @@ hestiacp="$HESTIA/install/deb"
1515# Load hestia.conf
1616source /usr/local/hestia/conf/hestia.conf
1717
18- # Get hestia version
19- version=$( dpkg -l | awk ' $2=="hestia" { print $3 }' )
20-
21- function version_ge(){ test " $( printf ' %s\n' " $@ " | sort -V | head -n 1) " ! = " $1 " -o ! -z " $1 " -a " $1 " = " $2 " ; }
22-
2318# Compare version for upgrade routine
24- if [ " $version " != " 0.9.8-28" ]; then
19+ if [ " $VERSION " != " 0.9.8-28" ]; then
2520 source $HESTIA /install/upgrade/0.9.8-28.sh
2621fi
2722
Original file line number Diff line number Diff line change @@ -15,14 +15,16 @@ hestiacp="$HESTIA/install/deb"
1515# Load hestia.conf
1616source /usr/local/hestia/conf/hestia.conf
1717
18- # Get hestia version
19- version=$( dpkg -l | awk ' $2=="hestia" { print $3 }' )
20-
2118# Compare version for upgrade routine
22- if [ " $version " != " 1.00.0-190618" ] && [ " $version " != " 0.10.0" ] then
19+ if [ " $VERSION " != " 1.00.0-190618" ] && [ " $VERSION " != " 0.10.0" ] then
2320 source $HESTIA /install/upgrade/1.00.0-190618.sh
2421fi
2522
23+ # Get hestia version
24+ version=$( dpkg -l | awk ' $2=="hestia" { print $3 }' )
25+
26+ # To Do: Write version to hestia.conf.
27+
2628# Place additional commands below.
2729
2830# Remove global options from nginx.conf to prevent conflicts with other web packages
You can’t perform that action at this time.
0 commit comments