diff options
| author | Mohammad Movaghari <52345697+mohammadmovaghari@users.noreply.github.com> | 2023-04-12 16:29:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-12 16:29:17 +0300 |
| commit | c575425292e2c4c690728174e42a6f34963394c2 (patch) | |
| tree | c9b033457baa55a98cea23a8769645f8f3dbd476 /x-ui.sh | |
| parent | 63f71e527ceddc724e0bd2893c4946b01f3a5f6c (diff) | |
| parent | 82b2809fccb6a131b4f84e2ca236f8bea567beae (diff) | |
Merge branch 'MHSanaei:main' into main
Diffstat (limited to 'x-ui.sh')
| -rw-r--r-- | x-ui.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -455,6 +455,14 @@ ssl_cert_issue() { } open_ports() { +if ! command -v ufw &> /dev/null +then + echo "ufw firewall is not installed. Installing now..." + sudo apt-get update + sudo apt-get install -y ufw +else + echo "ufw firewall is already installed" +fi # Check if the firewall is inactive if sudo ufw status | grep -q "Status: active"; then |
