Skip to content

Commit

Permalink
Update mgmt ipv6 interface script to be globally executable (#2326)
Browse files Browse the repository at this point in the history
* Update mgmt ipv6 interface script to be globally executable

* skip cq

---------

Co-authored-by: Roman Dodin <dodin.roman@gmail.com>
  • Loading branch information
kaelemc and hellt authored Dec 3, 2024
1 parent fbec552 commit 1c068f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nodes/xrd/xrd.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,12 @@ func (n *xrd) createXRDFiles(_ context.Context) error {
cfg := filepath.Join(n.Cfg.LabDir, "first-boot.cfg")
nodeCfg.ResStartupConfig = cfg

mgmt_script_path := filepath.Join(n.Cfg.LabDir, "mgmt_intf_v6_addr.sh")

// generate script file
if !utils.FileExists(filepath.Join(n.Cfg.LabDir, "mgmt_intf_v6_addr.sh")) {
utils.CreateFile(filepath.Join(n.Cfg.LabDir, "mgmt_intf_v6_addr.sh"), "")
utils.AdjustFileACLs(filepath.Join(n.Cfg.LabDir, "mgmt_intf_v6_addr.sh"))
if !utils.FileExists(mgmt_script_path) {
utils.CreateFile(mgmt_script_path, "")
os.Chmod(mgmt_script_path, 0775) // skipcq: GSC-G302
}

// set mgmt IPv4/IPv6 gateway as it is already known by now
Expand Down

0 comments on commit 1c068f9

Please sign in to comment.