Compare commits
2 Commits
c46b7c6ea6
...
3cb53605c7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cb53605c7 | ||
|
|
b7d4cbf46c |
@@ -9,8 +9,12 @@ let type = "dshow";
|
||||
|
||||
// Set Linux values for use in production
|
||||
if (os.platform() === 'linux') {
|
||||
await executeCommand("pactl", ['list', 'short', 'sources']).then(cliOutput => {
|
||||
await new Promise((res) => {
|
||||
executeCommand("pactl", ['list', 'short', 'sources']).then(cliOutput => {
|
||||
device = extractValue(cliOutput, '(?:\d[ ]{4,12}(.+?)[ ]{4,12}(?:.+?[ ]{4,12}){2,4}RUNNING)')
|
||||
console.log("Device:", device);
|
||||
res();
|
||||
});
|
||||
});
|
||||
type = "pulse"; // Replace with appropriate type for Linux
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ echo "Installing npm dependencies..."
|
||||
npm install
|
||||
|
||||
# Generate .env file
|
||||
echo "Creating the config .env file..."
|
||||
echo "# Client Config" > .env
|
||||
echo "CLIENT_NUID=0" >> .env
|
||||
client_name=$(prompt_user "Enter the name for this node")
|
||||
@@ -151,6 +152,7 @@ echo "Cloning OP25 from the git repository..."
|
||||
git clone https://github.com/boatbod/op25.git
|
||||
|
||||
# Navigate to the OP25 directory
|
||||
$ogPwd = $(pwd)
|
||||
cd op25
|
||||
|
||||
# Edit the startup script to use the active.cfg.json config file generated by the app
|
||||
@@ -190,3 +192,10 @@ echo "Installing OP25..."
|
||||
./install.sh
|
||||
|
||||
echo "\n\n\t\tOP25 installation completed!\n\n"
|
||||
|
||||
# Setting permissions on the directories created
|
||||
cd $ogPwd
|
||||
chown -R 1000:1000 ./*
|
||||
echo "Permissions set on the client directory!"
|
||||
|
||||
echo "\n\n\t\tNode installation Complete!"
|
||||
Reference in New Issue
Block a user