Skip to content

Commit

Permalink
quick dirty fix for download domain not being sourced from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
tomich committed May 20, 2024
1 parent 90ac320 commit 7c63f10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,9 @@ config_react(){
# applicationID: '',
# ----------------------------

sed -z -E -i "s/(dexare:.*token:\s*)('')(.*applicationID:\s*)('')/\
\1'$DISCORD_BOT_TOKEN'\3'$DISCORD_APP_ID'/"\
DOWNLOAD_DOMAIN=$(echo $API_HOMEPAGE|awk -F'://' '{print $2}')
sed -z -E -i "s/(dexare:.*token:\s*)('')(.*applicationID:\s*)('')(.*downloadDomain:\s*)('localhost:5029')//\
\1'$DISCORD_BOT_TOKEN'\3'$DISCORD_APP_ID'\3'$DOWNLOAD_DOMAIN'/"\
"$craig_dir/apps/bot/config/default.js"


Expand Down
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,9 @@ config_react(){
# // Application ID
# applicationID: '',
# ----------------------------

sed -z -E -i "s/(dexare:.*token:\s*)('')(.*applicationID:\s*)('')/\
\1'$DISCORD_BOT_TOKEN'\3'$DISCORD_APP_ID'/"\
DOWNLOAD_DOMAIN=$(echo $API_HOMEPAGE|awk -F'://' '{print $2}')
sed -z -E -i "s/(dexare:.*token:\s*)('')(.*applicationID:\s*)('')(.*downloadDomain:\s*)('localhost:5029')//\
\1'$DISCORD_BOT_TOKEN'\3'$DISCORD_APP_ID'\3'$DOWNLOAD_DOMAIN'/"\
"$craig_dir/apps/bot/config/default.js"


Expand Down

0 comments on commit 7c63f10

Please sign in to comment.