Merge pull request #161 from YunoHost/fix-bookworm-Yunohost-Portal-detection

fix Yunohost Portal detection on bookworm
This commit is contained in:
Alexandre Aubin 2024-06-24 17:18:27 +02:00 committed by GitHub
commit 0794d5967f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -318,7 +318,8 @@ _VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
local page_extract=$(lynx -dump -force_html "$curl_output" | head --lines 20 | tee -a "$full_log")
# Check if the page title is neither the YunoHost portail or default NGINX page
if [ "$page_title" = "YunoHost Portal" ]
# And check if the "Real URL" is the ynh sso
if [ "$page_title" = "YunoHost Portal" ] || (cat $TEST_CONTEXT/curl_print | cut --delimiter=';' --fields=2 | grep -q "/yunohost/sso")
then
log_debug "The connection attempt fall on the YunoHost portal."
fell_on_sso_portal=1