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}
114114
115115# Optional: Set the priority of the Defguard forward chain
116116#fw_priority = 0
117+
118+ log_level = "${log_level} "
117119EOF
118120
119121%{ if nat ~ }
126128 grep -q -e ' ^net.ipv6.conf.all.forwarding' /etc/sysctl.conf || echo " net.ipv6.conf.all.forwarding = 1" | tee -a /etc/sysctl.conf
127129%{ endif ~ }
128130
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
135131log " Reloading systemd daemon to apply changes..."
136132systemctl daemon-reload
137133
You can’t perform that action at this time.
0 commit comments