refac: new logic to detecting a Wireguard interface
parent
5ccfe07e12
commit
0d814ec03c
|
|
@ -105,7 +105,7 @@ ensure_installation() {
|
|||
echo "Looks like the installation succeeded. Moving on."
|
||||
|
||||
# Setup WireGuard if needed
|
||||
if [ ! -f "/etc/wireguard/wg0.conf" ]; then
|
||||
if [ -z "$(ls -A /etc/wireguard)" ]; then
|
||||
cp -a "/configs/wg0.conf.template" "/etc/wireguard/wg0.conf"
|
||||
|
||||
echo "Setting a secure private key."
|
||||
|
|
|
|||
Loading…
Reference in New Issue