File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 2222 files : |
2323 udwall
2424 udwall.conf
25+ udwall.conf.example
2526 install.sh
2627 generate_release_notes : true
Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ You can install `udwall` with a single command:
5959curl -fsSL https://raw.githubusercontent.com/HexmosTech/udwall/main/install.sh | sudo bash
6060```
6161
62+ To install a specific version (e.g., ` v0.0.2 ` ), run:
63+
64+ ``` bash
65+ curl -fsSL https://raw.githubusercontent.com/HexmosTech/udwall/main/install.sh | sudo bash -s -- --v0.0.2
66+ ```
67+
6268This script will:
6369- Check for dependencies (` python3 ` , ` ufw ` , ` curl ` ).
6470- Download ` udwall ` to ` /usr/local/bin/udwall ` .
Original file line number Diff line number Diff line change 44
55set -e
66
7- REPO_URL=" https://raw.githubusercontent.com/HexmosTech/udwall/main"
7+ # Parse version argument (e.g., --v0.0.2)
8+ VERSION=" main"
9+ if [ $# -gt 0 ] && [[ " $1 " == --v* ]]; then
10+ VERSION=" ${1# --} " # Remove leading --
11+ fi
12+
13+ REPO_URL=" https://raw.githubusercontent.com/HexmosTech/udwall/$VERSION "
814INSTALL_PATH=" /usr/local/bin/udwall"
915CONFIG_DIR=" /etc/udwall"
1016CONFIG_FILE=" $CONFIG_DIR /udwall.conf"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import shlex
99import re
1010import logging
1111
12- __version__ = "0.0.3 "
12+ __version__ = "0.0.4 "
1313
1414AFTER_RULES_PATH = "/etc/ufw/after.rules"
1515AFTER6_RULES_PATH = "/etc/ufw/after6.rules"
You can’t perform that action at this time.
0 commit comments