Skip to content

Commit c78fd59

Browse files
author
Kristan Kenney
committed
Update default release branch for existing installations
1 parent fa9e075 commit c78fd59

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

install/upgrade/versions/1.0.1.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ function version_ge(){ test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1
66
# Set new version number
77
NEW_VERSION="1.0.1"
88

9-
10-
119
# Load hestia.conf
1210
source /usr/local/hestia/conf/hestia.conf
1311

1412
########################################################################################################
1513
####### Place additional commands below. #######
1614
########################################################################################################
1715

16+
# Ensure that users from previous releases are set to the correct stable release branch
17+
if [ $RELEASE_BRANCH = "master" ] || [ $RELEASE_BRANCH = "develop" ]; then
18+
echo "(*) Updating default release branch configuration..."
19+
sed -i "/RELEASE_BRANCH/d" $HESTIA/conf/hestia.conf
20+
echo "RELEASE_BRANCH='release'" >> $HESTIA/conf/hestia.conf
21+
fi
22+
1823
# Add amd64 to repositories to prevent notifications - https://goo.gl/hmsSV7
1924
if ! grep -q 'arch=amd64' /etc/apt/sources.list.d/nginx.list; then
2025
sed -i s/"deb "/"deb [arch=amd64] "/g /etc/apt/sources.list.d/nginx.list

0 commit comments

Comments
 (0)