summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-09-28 02:02:20 +0300
committerMaxim Devaev <[email protected]>2023-09-28 02:02:31 +0300
commit29e266f5427e26947acdbfa942775760f83ff115 (patch)
tree51600ac7d9d96f5cd13f5836b20744319f29ff16
parent0c4d21f20493d3d37f80c741de8fb02bc8369420 (diff)
pikvm/pikvm#1115: 640 permissions to wpa config
-rwxr-xr-xscripts/kvmd-bootconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig
index 1ea68c2c..f4051363 100755
--- a/scripts/kvmd-bootconfig
+++ b/scripts/kvmd-bootconfig
@@ -191,6 +191,7 @@ DNSSEC=no
ClientIdentifier=mac
end_of_file
wpa_passphrase "$WIFI_ESSID" "$WIFI_PASSWD" > "/etc/wpa_supplicant/wpa_supplicant-$WIFI_IFACE.conf"
+ chmod 640 "/etc/wpa_supplicant/wpa_supplicant-$WIFI_IFACE.conf"
systemctl enable "wpa_supplicant@$WIFI_IFACE.service" || true
touch /boot/pikvm-reboot.txt
fi