File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1- 6.22.0
1+ 6.22.1
Original file line number Diff line number Diff line change 1414require 'system/getifaddrs'
1515require 'json'
1616require 'open3'
17+ require 'getopt/std'
1718require File . join ( ENV [ 'RBLIB' ] . nil? ? '/usr/lib/redborder/lib' : ENV [ 'RBLIB' ] , 'rb_config_utils.rb' )
1819
1920RBETC = ENV [ 'RBETC' ] . nil? ? '/etc/redborder' : ENV [ 'RBETC' ]
2021INITCONF = "#{ RBETC } /rb_init_conf.yml"
2122
2223init_conf = YAML . load_file ( INITCONF )
2324
25+ # Parse command-line options
26+ opts = Getopt ::Std . getopts ( "s" )
27+ opt [ "s" ] ? rb_bootstrap_service = true : rb_bootstrap_service = false
28+
2429def iproute2_version
2530 stdout , _stderr , _status = Open3 . capture3 ( 'rpm -q iproute' )
2631 version_match = stdout . match ( /iproute-(\d +\. \d +\. \d +)/ )
@@ -284,4 +289,8 @@ def use_usr_share?(version)
284289system ( 'systemctl start serf &> /dev/null' )
285290# wait a moment before start serf-join to ensure connectivity
286291sleep ( 3 )
287- system ( '/usr/lib/redborder/bin/rb_bootstrap.sh' )
292+ if rb_bootstrap_service
293+ system ( 'systemctl start rb-bootstrap &> /dev/null' )
294+ else
295+ system ( '/usr/lib/redborder/bin/rb_bootstrap.sh' )
296+ end
You can’t perform that action at this time.
0 commit comments