Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
added change to ziti-router.service
Browse files Browse the repository at this point in the history
  • Loading branch information
r-caamano committed Jan 12, 2024
1 parent 5cc7a66 commit e7af0a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/scripts/start_ebpf_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ def set_local_rules(resolver):
os.system("sed -i 's/ExecStartPre\=\-\/opt\/netfoundry\/ebpf\/scripts\/tproxy_splicer_startup.sh/#ExecStartPre\=\-\/opt\/netfoundry\/ebpf\/scripts\/tproxy_splicer_startup.sh/g' /etc/systemd/system/ziti-router.service")
test1 = 1
if(args.lanIf):
test1 = os.system("sed -i 's/User\=ziti/User\=root/g' /etc/systemd/system/ziti-router.service")
test1 = os.system("sed -i '/ExecStart=/i ExecStartPre\=\-\/opt\/openziti\/bin\/start_ebpf_router.py --lanIf " + lanIf + "' /etc/systemd/system/ziti-router.service")
else:
test1 = os.system("sed -i '/ExecStart=/i ExecStartPre\=\-\/opt\/openziti\/bin\/start_ebpf_router.py' /etc/systemd/system/ziti-router.service")
Expand Down

0 comments on commit e7af0a9

Please sign in to comment.