From 5cea37fe56d6bd7a113bd88e64afd2c726496078 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Sun, 29 Jan 2023 03:50:23 -0500 Subject: [PATCH] Move the redirect uri to a variable. --- ratatoskr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ratatoskr.sh b/ratatoskr.sh index 2d5e683..08da983 100755 --- a/ratatoskr.sh +++ b/ratatoskr.sh @@ -15,9 +15,9 @@ get_oauth_token() { instanceURL="https://${instanceURL}" fi done - redirectURI="file://$(realpath ${0})" + redirectURI="https://billy.wolfe.casa/ratatoskr-success.html" # get client id and secret - curl -s -X POST -d client_name="${softwareName}" -d "redirect_uris=https://billy.wolfe.casa/ratatoskr-success.html" -d "scopes=read write follow push" -d "website=https://git.stormux.org/storm/ratatoskr" "${instanceURL}/api/v1/apps" | + curl -s -X POST -d client_name="${softwareName}" -d "redirect_uris=${redirectURI}" -d "scopes=read write follow push" -d "website=https://git.stormux.org/storm/ratatoskr" "${instanceURL}/api/v1/apps" | jq --raw-output '"client_id=\"\(.client_id)\"\nclient_secret=\"\(.client_secret)\""' > "${configPath}/${configFile}" # Load the new variables from the configuration file source "${configPath}/${configFile}"