From 7af8d2737e794a265ae321c4d166c91ef90289f5 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Tue, 18 Jun 2024 23:21:00 +0200 Subject: [PATCH] [fix] If logout url empty --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 9d11edf..290aaf8 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -262,7 +262,9 @@ then # Add dynamic logout URL to the config url_base64="$(echo -n "https://$domain$path" | base64)" old_logout_url="https://$(cat /etc/yunohost/current_host)/yunohost/sso/?action=logout" + set +e current_logout_url="$(exec_occ config:system:get logout_url 2> /dev/null)" + set -e if [[ "$current_logout_url" == "${old_logout_url}" ]] || [[ "$current_logout_url" == "" ]] then echo "