From 6b12c3e3df6b4e955d08396b39717d57a1b2e6e4 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 3 Jun 2023 23:01:47 -0400 Subject: [PATCH 1/2] Remove unused keys from example .env file --- Client/.env.example | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Client/.env.example b/Client/.env.example index d3521fd..39304ef 100644 --- a/Client/.env.example +++ b/Client/.env.example @@ -1,18 +1,10 @@ DEBUG="client:*" -# Bot Config -# Discord Bot Token -TOKEN="" -# Discord Bot Application ID -APPLICATION_ID="" -# Default Guild ID -GUILD_ID="" - # Audio Config AUDIO_DEVICE_ID="" AUDIO_DEVICE_NAME="" # Client Config -CLIENT_ID= +CLIENT_ID=0 CLIENT_NAME="" CLIENT_IP="" CLIENT_PORT=3010 From ff8e86cc3aa5b0fa37cf78f80a8df5d8b918212c Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 3 Jun 2023 23:02:41 -0400 Subject: [PATCH 2/2] Updated client setup script - Create a copy of the .env example - Updated the installed packages to allow for installation --- Client/setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Client/setup.sh b/Client/setup.sh index d04188a..a2ef383 100644 --- a/Client/setup.sh +++ b/Client/setup.sh @@ -13,6 +13,9 @@ ls -ld $SCRIPT_DIR | awk '{print $3}' >> ./config/installerName useradd -M RadioNode usermod -s -L RadioNode +# Create the .env file from the example +cp $SCRIPT_DIR/.env.example $SCRIPT_DIR/.env + # Change the ownership of the directory to the service user chown RadioNode -R $SCRIPT_DIR @@ -27,7 +30,7 @@ apt-get update apt-get upgrade -y # Install the necessary packages -apt-get install -y nodejs npm libopus-dev gcc make portaudio19-dev libportaudio2 libpulse-dev pulseaudio apulse python3 pip +apt-get install -y nodejs portaudio19-dev libportaudio2 libpulse-dev pulseaudio apulse python3 python3-pip # Ensure pulse audio is running pulseaudio