瀏覽代碼

Use internal script to set RELEASE_BRANCH instead of sed

Kristan Kenney 6 年之前
父節點
當前提交
459a5d0b5d
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      func/upgrade.sh

+ 1 - 2
func/upgrade.sh

@@ -78,8 +78,7 @@ upgrade_start_routine() {
     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
+        $BIN/v-change-sys-config-value 'RELEASE_BRANCH' 'release'
     fi
 
     #####################################################################