2 Commits

Author SHA1 Message Date
Logan Cusano
ff8e86cc3a Updated client setup script
- Create a copy of the .env example
- Updated the installed packages to allow for installation
2023-06-03 23:02:41 -04:00
Logan Cusano
6b12c3e3df Remove unused keys from example .env file 2023-06-03 23:01:47 -04:00
2 changed files with 5 additions and 10 deletions

View File

@@ -1,18 +1,10 @@
DEBUG="client:*" DEBUG="client:*"
# Bot Config
# Discord Bot Token
TOKEN=""
# Discord Bot Application ID
APPLICATION_ID=""
# Default Guild ID
GUILD_ID=""
# Audio Config # Audio Config
AUDIO_DEVICE_ID="" AUDIO_DEVICE_ID=""
AUDIO_DEVICE_NAME="" AUDIO_DEVICE_NAME=""
# Client Config # Client Config
CLIENT_ID= CLIENT_ID=0
CLIENT_NAME="" CLIENT_NAME=""
CLIENT_IP="" CLIENT_IP=""
CLIENT_PORT=3010 CLIENT_PORT=3010

View File

@@ -13,6 +13,9 @@ ls -ld $SCRIPT_DIR | awk '{print $3}' >> ./config/installerName
useradd -M RadioNode useradd -M RadioNode
usermod -s -L 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 # Change the ownership of the directory to the service user
chown RadioNode -R $SCRIPT_DIR chown RadioNode -R $SCRIPT_DIR
@@ -27,7 +30,7 @@ apt-get update
apt-get upgrade -y apt-get upgrade -y
# Install the necessary packages # 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 # Ensure pulse audio is running
pulseaudio pulseaudio