File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
terraform/modules/gateway Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ masquerade = ${nat}
114
114
115
115
# Optional: Set the priority of the Defguard forward chain
116
116
#fw_priority = 0
117
+
118
+ log_level = "${log_level} "
117
119
EOF
118
120
119
121
%{ if nat ~ }
126
128
grep -q -e ' ^net.ipv6.conf.all.forwarding' /etc/sysctl.conf || echo " net.ipv6.conf.all.forwarding = 1" | tee -a /etc/sysctl.conf
127
129
%{ endif ~ }
128
130
129
- log " Setting log level in defguard-gateway service..."
130
- if grep -q ' ^Environment="RUST_LOG=' /lib/systemd/system/defguard-gateway.service; then
131
- sed -i " s|^Environment=\" RUST_LOG=.*\" |Environment=\" RUST_LOG=${log_level} \" |" /lib/systemd/system/defguard-gateway.service
132
- else
133
- sed -i " /^\[Service\]/a Environment=\" RUST_LOG=${log_level} \" " /lib/systemd/system/defguard-gateway.service
134
- fi
135
131
log " Reloading systemd daemon to apply changes..."
136
132
systemctl daemon-reload
137
133
You can’t perform that action at this time.
0 commit comments