File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ COMPOSE_FILE="./docker-compose.yaml"
1515SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " 2> /dev/null && pwd || pwd) "
1616COMPOSE_FILE_LOCAL=" ${SCRIPT_DIR} /docker-compose.yaml"
1717
18+ VERSION=" 1.0.0"
19+
1820DEFGUARD_CORE_TAG=" 2"
1921DEFGUARD_PROXY_TAG=" 2"
2022DEFGUARD_GATEWAY_TAG=" 2"
@@ -88,6 +90,7 @@ print_header() {
8890LOGO
8991 echo -e " ${C_END} "
9092 echo " Defguard docker-compose 2.0 setup script"
93+ echo " Version: ${VERSION} "
9194 echo -e " Copyright ©2023-2026 ${C_BOLD} defguard sp. z o.o.${C_END} <${C_BG_GREY}${C_YELLOW} https://defguard.net/${C_END} >"
9295 echo
9396}
@@ -99,6 +102,7 @@ usage() {
99102 echo " --dev use development images"
100103 echo " --pre-release use pre-release images"
101104 echo " --no-masquerade disable IP masquerade on the gateway"
105+ echo " --version show version and exit"
102106 echo " --help show this help and exit"
103107 echo
104108 exit 0
@@ -125,6 +129,9 @@ parse_args() {
125129 DEFGUARD_PROXY_TAG=" pre-release"
126130 DEFGUARD_GATEWAY_TAG=" pre-release"
127131 shift ;;
132+ --version)
133+ echo " $( basename " $0 " ) version $VERSION "
134+ exit 0 ;;
128135 --help|-h)
129136 usage ;;
130137 * )
You can’t perform that action at this time.
0 commit comments