File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed
Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function welcome_message() {
88 echo ' |_| |_|\___||___/\__|_|\__,_|\____|_| '
99 echo " "
1010 echo " Hestia Control Panel Upgrade Script"
11- echo " Version: $version "
11+ echo " Version: $version "
1212 echo " ==================================================="
1313 echo " "
1414 echo " Existing files will be backed up to the following location:"
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Add release branch system configuration if non-existent
4+ release_branch_check=$( cat $HESTIA /conf/hestia.conf | grep RELEASE_BRANCH)
5+ if [ -z " $release_branch_check " ]; then
6+ echo " (*) Adding global release branch variable to system configuration..."
7+ sed -i " /RELEASE_BRANCH/d" $HESTIA /conf/hestia.conf
8+ echo " RELEASE_BRANCH='master'" >> $HESTIA /conf/hestia.conf
9+ fi
10+
11+ # Step through version upgrade scripts in order as necessary to ensure that systems
12+ # are properly upgraded if skipping versions.
313if [ $VERSION = " $version " ]; then
414 echo " (!) The latest version of Hestia Control Panel ($version ) is already installed."
515 echo " Verifying configuration..."
@@ -15,7 +25,7 @@ if [ $VERSION = "0.9.8-28" ]; then
1525 source /usr/local/hestia/install/upgrade/versions/1.00.0-190618.sh
1626 VERSION=" 1.00.0-190618"
1727fi
18- if [ $VERSION = " 0.10.00" ] || [ $VERSION = " 1.00.0-190618" ]; then
28+ if [ $VERSION = " 0.10.00" ] || [ $VERSION = " 1.00.0-190618" ] || [ $VERSION = " 1.00.0-190621 " ] ; then
1929 source /usr/local/hestia/install/upgrade/versions/$version .sh
2030 VERSION=" $version "
2131fi
File renamed without changes.
Original file line number Diff line number Diff line change @@ -27,14 +27,6 @@ if [ ! -z "$imap_check" ]; then
2727 fi
2828fi
2929
30- # Add release branch system configuration if non-existent
31- release_branch_check=$( cat $HESTIA /conf/hestia.conf | grep RELEASE_BRANCH)
32- if [ -z " $release_branch_check " ]; then
33- echo " (*) Adding global release branch variable to system configuration..."
34- sed -i " /RELEASE_BRANCH/d" $HESTIA /conf/hestia.conf
35- echo " RELEASE_BRANCH='develop'" >> $HESTIA /conf/hestia.conf
36- fi
37-
3830# Load global variables
3931source $HESTIA /conf/hestia.conf
4032
Original file line number Diff line number Diff line change 11Source: hestia
22Package: hestia
33Priority: optional
4- Version: 1.00.0-190621
4+ Version: 1.0.1
55Section: admin
66Maintainer: HestiaCP <info@hestiacp.com>
77Homepage: https://www.hestiacp.com
You can’t perform that action at this time.
0 commit comments