Improve alignment and add link to blog post

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2025-02-26 13:30:46 +01:00
parent 4609f90860
commit 43ee724718
No known key found for this signature in database

View file

@ -108,14 +108,14 @@ updateWarnDialog() {
core_str="Core: \\Zb\\Z4up to date\\Zn" core_str="Core: \\Zb\\Z4up to date\\Zn"
fi fi
if [[ "${web_update}" == true ]]; then if [[ "${web_update}" == true ]]; then
web_str="Web Interface: \\Zb\\Z1update available\\Zn" web_str="Web: \\Zb\\Z1update available\\Zn"
else else
web_str="Web Interface: \\Zb\\Z4up to date\\Zn" web_str="Web: \\Zb\\Z4up to date\\Zn"
fi fi
if [[ "${FTL_update}" == true ]]; then if [[ "${FTL_update}" == true ]]; then
ftl_str="FTL: \\Zb\\Z1update available\\Zn" ftl_str="FTL: \\Zb\\Z1update available\\Zn"
else else
ftl_str="FTL: \\Zb\\Z4up to date\\Zn" ftl_str="FTL: \\Zb\\Z4up to date\\Zn"
fi fi
# shellcheck disable=SC2154 # Variables "${r}" "${c}" are defined in the main script # shellcheck disable=SC2154 # Variables "${r}" "${c}" are defined in the main script
dialog --no-shadow --clear --keep-tite \ dialog --no-shadow --clear --keep-tite \
@ -129,7 +129,7 @@ updateWarnDialog() {
$web_str\\n\ $web_str\\n\
$ftl_str\\n\\n\\n\ $ftl_str\\n\\n\\n\
\\Zb\\Z1IMPORTANT:\\Zn Make a (teleporter) backup of your system!\\n\\n\ \\Zb\\Z1IMPORTANT:\\Zn Make a (teleporter) backup of your system!\\n\\n\
Updates can come with significant changes. Please read the changelog carefully.\\n\\n\\n\ Updates can come with significant changes. Please read the changelog at https://pi-hole.net/blog carefully.\\n\\n\\n\
Please confirm you want to start the update process." \ Please confirm you want to start the update process." \
"${r}" "${c}" && result=0 || result="$?" "${r}" "${c}" && result=0 || result="$?"