We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3b95c5 commit 36190a1Copy full SHA for 36190a1
install/upgrade/versions/1.0.1.sh
@@ -1,4 +1,4 @@
1
-#!/bin/bash
+#!/bin/sh
2
3
# Hestia Control Panel upgrade script for target version 1.0.1
4
@@ -7,7 +7,7 @@
7
#######################################################################################
8
9
# Ensure that users from previous releases are set to the correct stable release branch
10
-if [ $RELEASE_BRANCH = "master" ] || [ $RELEASE_BRANCH = "develop" ]; then
+if [ ! -z "$RELEASE_BRANCH" ] && [ "$RELEASE_BRANCH" = "master" ] || [ "$RELEASE_BRANCH" = "develop" ]; then
11
echo "(*) Updating default release branch configuration..."
12
sed -i "/RELEASE_BRANCH/d" $HESTIA/conf/hestia.conf
13
echo "RELEASE_BRANCH='release'" >> $HESTIA/conf/hestia.conf
0 commit comments