mirror of
https://github.com/hwdsl2/wireguard-install.git
synced 2024-06-20 09:35:39 +02:00
Check folder exists
- Add a check to make sure /etc/wireguard exists after "apt-get install". - Ref: #13
This commit is contained in:
parent
c0bc872d2e
commit
407cb93532
|
@ -641,6 +641,7 @@ if [[ ! -e /etc/wireguard/wg0.conf ]]; then
|
|||
) || exiterr "'dnf install' failed."
|
||||
mkdir -p /etc/wireguard/
|
||||
fi
|
||||
[ ! -d /etc/wireguard ] && exiterr2
|
||||
# If firewalld was just installed, enable it
|
||||
if [[ "$firewall" == "firewalld" ]]; then
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue
Block a user