mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-01 03:02:35 +00:00
Add double quote to prevent globbing
This commit is contained in:
parent
2168d9c7c7
commit
77d6768204
@ -302,7 +302,7 @@ PublicKey = ${CLIENT_PUB_KEY}
|
|||||||
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
|
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
|
||||||
AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128" >>"/etc/wireguard/${SERVER_WG_NIC}.conf"
|
AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128" >>"/etc/wireguard/${SERVER_WG_NIC}.conf"
|
||||||
|
|
||||||
wg syncconf ${SERVER_WG_NIC} <(wg-quick strip ${SERVER_WG_NIC})
|
wg syncconf "${SERVER_WG_NIC}" <(wg-quick strip "${SERVER_WG_NIC}")
|
||||||
|
|
||||||
echo -e "\nHere is your client config file as a QR Code:"
|
echo -e "\nHere is your client config file as a QR Code:"
|
||||||
|
|
||||||
@ -340,7 +340,7 @@ function revokeClient() {
|
|||||||
rm -f "${HOME}/${SERVER_WG_NIC}-client-${CLIENT_NAME}.conf"
|
rm -f "${HOME}/${SERVER_WG_NIC}-client-${CLIENT_NAME}.conf"
|
||||||
|
|
||||||
# restart wireguard to apply changes
|
# restart wireguard to apply changes
|
||||||
wg syncconf ${SERVER_WG_NIC} <(wg-quick strip ${SERVER_WG_NIC})
|
wg syncconf "${SERVER_WG_NIC}" <(wg-quick strip "${SERVER_WG_NIC}")
|
||||||
}
|
}
|
||||||
|
|
||||||
function uninstallWg() {
|
function uninstallWg() {
|
||||||
|
Loading…
Reference in New Issue
Block a user