mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-27 21:00:40 +00:00
fix(authelia): use POSIX-safe arithmetic to avoid exit code 1 with set -e (#11125)
This commit is contained in:
committed by
GitHub
parent
b17b555139
commit
d356ba4822
@@ -15,11 +15,10 @@ update_os
|
|||||||
|
|
||||||
fetch_and_deploy_gh_release "authelia" "authelia/authelia" "binary"
|
fetch_and_deploy_gh_release "authelia" "authelia/authelia" "binary"
|
||||||
|
|
||||||
get_lxc_ip
|
|
||||||
MAX_ATTEMPTS=3
|
MAX_ATTEMPTS=3
|
||||||
attempt=0
|
attempt=0
|
||||||
while true; do
|
while true; do
|
||||||
((attempt++))
|
attempt=$((attempt + 1))
|
||||||
read -rp "${TAB3}Enter your domain or IP (ex. example.com or 192.168.1.100): " DOMAIN
|
read -rp "${TAB3}Enter your domain or IP (ex. example.com or 192.168.1.100): " DOMAIN
|
||||||
if [[ -z "$DOMAIN" ]]; then
|
if [[ -z "$DOMAIN" ]]; then
|
||||||
if ((attempt >= MAX_ATTEMPTS)); then
|
if ((attempt >= MAX_ATTEMPTS)); then
|
||||||
|
|||||||
Reference in New Issue
Block a user