Skip to content

Commit 36190a1

Browse files
author
Kristan Kenney
committed
Fix issue with upgrade script w/dash shell
1 parent c3b95c5 commit 36190a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/upgrade/versions/1.0.1.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# Hestia Control Panel upgrade script for target version 1.0.1
44

@@ -7,7 +7,7 @@
77
#######################################################################################
88

99
# Ensure that users from previous releases are set to the correct stable release branch
10-
if [ $RELEASE_BRANCH = "master" ] || [ $RELEASE_BRANCH = "develop" ]; then
10+
if [ ! -z "$RELEASE_BRANCH" ] && [ "$RELEASE_BRANCH" = "master" ] || [ "$RELEASE_BRANCH" = "develop" ]; then
1111
echo "(*) Updating default release branch configuration..."
1212
sed -i "/RELEASE_BRANCH/d" $HESTIA/conf/hestia.conf
1313
echo "RELEASE_BRANCH='release'" >> $HESTIA/conf/hestia.conf

0 commit comments

Comments
 (0)