Skip to content

Commit

Permalink
Update change_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgaspar committed Dec 21, 2023
1 parent 1729962 commit 84c71a5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/change_url
Expand Up @@ -33,7 +33,7 @@ then
exec_occ config:system:set trusted_domains 1 --value=$new_domain

# Change hostname for activity notifications
exec_occ config:system:set overwrite.cli.url --value="https://${new_domain}"
exec_occ config:system:set overwrite.cli.url --value="https://${new_domain}${new_path}"
fi

if [ $change_domain -eq 1 ]
Expand All @@ -49,6 +49,14 @@ then
fi
fi

#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring permissions..."

# Temporary fix for the API permission
ynh_permission_url --permission="api" --url="re:$new_domain\/.well-known\/.*" --auth_header="false" --clear_urls

#=================================================
# END OF SCRIPT
#=================================================
Expand Down

0 comments on commit 84c71a5

Please sign in to comment.