mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-19 12:30:32 +02:00
Set strict perms on WireGuard IPv4 fallback config
This commit is contained in:
@@ -44,6 +44,7 @@ else
|
|||||||
|
|
||||||
ipv4_config="${WIREGUARD_STATE_DIR}/${wireguard_interface}-ipv4.conf"
|
ipv4_config="${WIREGUARD_STATE_DIR}/${wireguard_interface}-ipv4.conf"
|
||||||
echo -n > "${ipv4_config}"
|
echo -n > "${ipv4_config}"
|
||||||
|
chmod 600 "${ipv4_config}" 2>/dev/null || true
|
||||||
|
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
if [[ "${line}" =~ ^Endpoint ]]; then
|
if [[ "${line}" =~ ^Endpoint ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user