Update file run_onchange_after_24-vpn-darwin.tmpl

This commit is contained in:
Brian Zalewski 2023-02-01 20:26:54 +00:00
parent 32296a7974
commit debabab34d

View file

@ -22,7 +22,7 @@ if [ ! -d /etc/wireguard ]; then
fi
### Add the WireGuard configurations
find "${XDG_CONFIG_HOME:-$HOME/.config}" -type f -name "*.conf" | while read WG_CONF; do
find "${XDG_CONFIG_HOME:-$HOME/.config}/vpn" -mindepth 1 -maxdepth 1 -type f -name "*.conf" | while read WG_CONF; do
WG_FILE="$(basename "$WG_CONF")"
logg info 'Adding `'"$WG_FILE"'` to /etc/wireguard'
sudo cp -f "$WG_CONF" "/etc/wireguard/$WG_FILE"