|
@@ -1,5 +1,15 @@
|
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
+# Add release branch system configuration if non-existent
|
|
|
|
|
+release_branch_check=$(cat $HESTIA/conf/hestia.conf | grep RELEASE_BRANCH)
|
|
|
|
|
+if [ -z "$release_branch_check" ]; then
|
|
|
|
|
+ echo "(*) Adding global release branch variable to system configuration..."
|
|
|
|
|
+ sed -i "/RELEASE_BRANCH/d" $HESTIA/conf/hestia.conf
|
|
|
|
|
+ echo "RELEASE_BRANCH='master'" >> $HESTIA/conf/hestia.conf
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
|
|
+# Step through version upgrade scripts in order as necessary to ensure that systems
|
|
|
|
|
+# are properly upgraded if skipping versions.
|
|
|
if [ $VERSION = "$version" ]; then
|
|
if [ $VERSION = "$version" ]; then
|
|
|
echo "(!) The latest version of Hestia Control Panel ($version) is already installed."
|
|
echo "(!) The latest version of Hestia Control Panel ($version) is already installed."
|
|
|
echo " Verifying configuration..."
|
|
echo " Verifying configuration..."
|
|
@@ -15,7 +25,7 @@ if [ $VERSION = "0.9.8-28" ]; then
|
|
|
source /usr/local/hestia/install/upgrade/versions/1.00.0-190618.sh
|
|
source /usr/local/hestia/install/upgrade/versions/1.00.0-190618.sh
|
|
|
VERSION="1.00.0-190618"
|
|
VERSION="1.00.0-190618"
|
|
|
fi
|
|
fi
|
|
|
-if [ $VERSION = "0.10.00" ] || [ $VERSION = "1.00.0-190618" ]; then
|
|
|
|
|
|
|
+if [ $VERSION = "0.10.00" ] || [ $VERSION = "1.00.0-190618" ] || [ $VERSION = "1.00.0-190621" ]; then
|
|
|
source /usr/local/hestia/install/upgrade/versions/$version.sh
|
|
source /usr/local/hestia/install/upgrade/versions/$version.sh
|
|
|
VERSION="$version"
|
|
VERSION="$version"
|
|
|
fi
|
|
fi
|