Skip to content

Commit 2ef5478

Browse files
authored
Merge pull request #333 from redBorder/development
Development
2 parents 5ba33db + ed2e667 commit 2ef5478

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.22.0
1+
6.22.1

resources/scripts/rb_init_conf.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@
1414
require 'system/getifaddrs'
1515
require 'json'
1616
require 'open3'
17+
require 'getopt/std'
1718
require File.join(ENV['RBLIB'].nil? ? '/usr/lib/redborder/lib' : ENV['RBLIB'],'rb_config_utils.rb')
1819

1920
RBETC = ENV['RBETC'].nil? ? '/etc/redborder' : ENV['RBETC']
2021
INITCONF="#{RBETC}/rb_init_conf.yml"
2122

2223
init_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+
2429
def 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)
284289
system('systemctl start serf &> /dev/null')
285290
# wait a moment before start serf-join to ensure connectivity
286291
sleep(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

0 commit comments

Comments
 (0)