File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/bash
22
33eco_server_api_token=$( aws ssm get-parameter --name /eco/server-api-token --with-decryption --query Parameter.Value --output text)
4+ discord_bot_token=$( aws ssm get-parameter --name /eco/discord-bot-token --with-decryption --query Parameter.Value --output text)
5+
6+ # Inject Discord bot token into DiscordLink.eco config
7+ config_path=" /home/kai/Steam/steamapps/common/EcoServer/Configs/DiscordLink.eco"
8+ if [ -f " $config_path " ]; then
9+ tmp=$( mktemp)
10+ jq --arg token " $discord_bot_token " ' .BotToken = $token' " $config_path " > " $tmp " && mv " $tmp " " $config_path "
11+ fi
412
513chmod a+x " /home/kai/Steam/steamapps/common/EcoServer/EcoServer"
614" /home/kai/Steam/steamapps/common/EcoServer/EcoServer" -userToken=" $eco_server_api_token "
You can’t perform that action at this time.
0 commit comments