Use double quotes instead of single quotes for string interpolation

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-24 22:10:19 +01:00
parent b2eb3a2844
commit cba9e3c63e
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -235,7 +235,7 @@ in
preStart = mkIf (cfg.wpaPassphraseFile != null) ''
PASSPHRASE=$(cat ${cfg.wpaPassphraseFile})
sed 's|#WPA_PASSPHRASE#|$PASSPHRASE|g' ${configFile} > /run/hostapd/hostapd.conf
sed "s|#WPA_PASSPHRASE#|$PASSPHRASE|g" ${configFile} > /run/hostapd/hostapd.conf
'';
serviceConfig =