Check folder exists

- Add a check to make sure /etc/wireguard exists
  after "apt-get install".
- Ref: #13
This commit is contained in:
hwdsl2 2023-03-29 23:05:30 -05:00
parent c0bc872d2e
commit 407cb93532

View File

@ -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
(