Skip to content

Commit 95dcc6b

Browse files
author
Kristan Kenney
committed
Merge branch 'upgrade-routine' into develop
2 parents 64af022 + e8a466b commit 95dcc6b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

install/upgrade/1.00.0-190618.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ HESTIA_BACKUP="/root/hst_upgrade/$(date +%d%m%Y%H%M)"
1212
# Set installation source folder
1313
hestiacp="$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
1627
pma_v='4.9.0.1'
1728

install/upgrade/1.00.0-190621.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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.

0 commit comments

Comments
 (0)