Skip to content

Commit

Permalink
changed sed statement for controller fw-init.service
Browse files Browse the repository at this point in the history
  • Loading branch information
r-caamano committed Aug 9, 2024
1 parent 25e15a0 commit 8e09b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/scripts/start_ebpf_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def set_local_rules(ip):
test1 = 1
test1 = os.system("sed -i '/ExecStart=/i ExecStartPre\=\-\/opt\/openziti\/bin\/start_ebpf_controller.py --lanIf " + lanIf + "' /etc/systemd/system/zfw-logging.service")
test1 = os.system("sed -i 's/ziti-router/ziti-controller/g' /etc/systemd/system/zfw-logging.service")
test1 = os.system("sed -i 's/ziti-router/ziti-controller/g' /etc/systemd/system/fw-init.service")
test1 = os.system("sed -i 's/_router/_controller/g' /etc/systemd/system/fw-init.service")

if(not test1):
test1 = os.system("systemctl daemon-reload")
Expand Down

0 comments on commit 8e09b77

Please sign in to comment.