1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

[fix] If logout url empty

This commit is contained in:
ljf (zamentur) 2024-06-18 23:21:00 +02:00 committed by GitHub
parent e9f82ab78e
commit 7af8d2737e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 "