| 12345678910111213141516171819202122232425 |
- #!/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='release'" >> $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
- echo "(!) The latest version of Hestia Control Panel ($version) is already installed."
- echo " Verifying configuration..."
- echo ""
- source /usr/local/hestia/install/upgrade/versions/$version.sh
- VERSION="$version"
- fi
- # Upgrade from pre-release/beta versions prior to v1.0.1
- if [ $VERSION = "0.9.8-27" ] || [ $VERSION = "0.9.8-28" ] || [ $VERSION = "0.10.0" ] || [ $VERSION = "1.00.0-190618" ] || [ $VERSION = "1.00.0-190621" ]; then
- source /usr/local/hestia/install/upgrade/versions/$version.sh
- VERSION="$version"
- fi
|