File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ HESTIA_BACKUP="/root/hst_upgrade/$(date +%d%m%Y%H%M)"
1212# Set installation source folder
1313hestiacp=" $HESTIA /install/deb"
1414
15+ # Load hestia.conf
16+ source /usr/local/hestia/conf/hestia.conf
17+
18+ # Get hestia version
19+ version=$( dpkg -l | awk ' $2=="hestia" { print $3 }' )
20+
21+ # Compare version for upgrade routine
22+ if [ " $version " != " 0.9.8-28" ]; then
23+ source $HESTIA /install/upgrade/0.9.8-28.sh
24+ fi
25+
1526# Set phpMyAdmin version for upgrade
1627pma_v=' 4.9.0.1'
1728
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Define global variables
4+ if [ -z " $HESTIA " ] || [ ! -f " ${HESTIA} /conf/hestia.conf" ]; then
5+ export HESTIA=" /usr/local/hestia"
6+ export BIN=" /usr/local/hestia/bin"
7+ fi
8+
9+ # Set backup folder
10+ HESTIA_BACKUP=" /root/hst_upgrade/$( date +%d%m%Y%H%M) "
11+
12+ # Set installation source folder
13+ hestiacp=" $HESTIA /install/deb"
14+
15+ # Load hestia.conf
16+ source /usr/local/hestia/conf/hestia.conf
17+
18+ # Get hestia version
19+ version=$( dpkg -l | awk ' $2=="hestia" { print $3 }' )
20+
21+ # Compare version for upgrade routine
22+ if [ " $version " != " 1.00.0-190618" ]; then
23+ source $HESTIA /install/upgrade/1.00.0-190618.sh
24+ fi
25+
26+ # Place additional commands below.
You can’t perform that action at this time.
0 commit comments