Explorar o código

Use internal script to set RELEASE_BRANCH instead of sed

Kristan Kenney %!s(int64=6) %!d(string=hai) anos
pai
achega
459a5d0b5d
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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
 
     #####################################################################