Use sudoedit for WG configs
This commit is contained in:
parent
ac657e9af6
commit
a6d73960b3
@ -176,7 +176,7 @@ wg-edit() {
|
|||||||
if [ $# != 1 ]; then
|
if [ $# != 1 ]; then
|
||||||
echo "Usage: wg-edit <interface>"
|
echo "Usage: wg-edit <interface>"
|
||||||
else
|
else
|
||||||
sudo nvim /etc/wireguard/$1.conf
|
sudoedit /etc/wireguard/$1.conf
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user