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:
parent
e9f82ab78e
commit
7af8d2737e
1 changed files with 2 additions and 0 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Reference in a new issue