ソースを参照

Fix issue with upgrade script w/dash shell

Kristan Kenney 6 年 前
コミット
36190a1ba1
1 ファイル変更2 行追加2 行削除
  1. 2 2
      install/upgrade/versions/1.0.1.sh

+ 2 - 2
install/upgrade/versions/1.0.1.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Hestia Control Panel upgrade script for target version 1.0.1
 
@@ -7,7 +7,7 @@
 #######################################################################################
 
 # Ensure that users from previous releases are set to the correct stable release branch
-if [ $RELEASE_BRANCH = "master" ] || [ $RELEASE_BRANCH = "develop" ]; then
+if [ ! -z "$RELEASE_BRANCH" ] && [ "$RELEASE_BRANCH" = "master" ] || [ "$RELEASE_BRANCH" = "develop" ]; then
     echo "(*) Updating default release branch configuration..."
     sed -i "/RELEASE_BRANCH/d" $HESTIA/conf/hestia.conf
     echo "RELEASE_BRANCH='release'" >> $HESTIA/conf/hestia.conf