Browse Source

Fix regression on setting CONFDIR

intoduced after considering the _oscamconfdir_custom variable in _cmd_build
pull/45/head
WXbet 5 years ago
parent
commit
57c8dc7729
  1. 9
      support/functions/_cmd_build

9
support/functions/_cmd_build

@ -123,13 +123,14 @@ _cmd_build(){
done done
#change default oscam CONF_DIR #change default oscam CONF_DIR
oc_size=${#_oscamconfdir_custom} if [ ! "$CUSTOM_CONFDIR" == "not_set" ]
if [ "$oc_size" -gt "4" ]
then then
CONFDIR="$_oscamconfdir_custom" CONFDIR="$CUSTOM_CONFDIR"
printf "$y_l\n | set :$r_l custom CONF_DIR=$CONFDIR$w_l" printf "$y_l\n | set :$r_l custom CONF_DIR=$CONFDIR$w_l"
else else
CONFDIR="$_oscamconfdir_default" oc_size=${#_oscamconfdir_custom}
[ "$oc_size" -gt "4" ] && CONFDIR="$_oscamconfdir_custom" || CONFDIR="$_oscamconfdir_default"
printf "$y_l\n | set :$r_l CONF_DIR=$CONFDIR$w_l"
fi fi
#patching #patching

Loading…
Cancel
Save