Updating install script #6
This commit is contained in:
@@ -27,7 +27,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 alsa-utils libasound2 libasound2-dev libpulse-dev pulseaudio apulse python3.9
|
apt-get install -y nodejs npm libopus-dev gcc make portaudio19-dev libportaudio2 libpulse-dev pulseaudio apulse python3 pip
|
||||||
|
|
||||||
# Ensure pulse audio is running
|
# Ensure pulse audio is running
|
||||||
pulseaudio
|
pulseaudio
|
||||||
@@ -44,12 +44,12 @@ Description=Radio Node Service
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=
|
WorkingDirectory="$SCRIPT_DIR"
|
||||||
ExecStart=/usr/bin/node .
|
ExecStart=/usr/bin/node .
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartDelay=10
|
RestartDelay=10
|
||||||
User=RadioNode
|
User=RadioNode
|
||||||
Environment=DEBUG='server:*'
|
Environment=DEBUG='client:*'
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >> /etc/systemd/system/RadioNode.service
|
WantedBy=multi-user.target" >> /etc/systemd/system/RadioNode.service
|
||||||
@@ -60,11 +60,10 @@ Description=Radio Node Updater Service
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=
|
WorkingDirectory="$SCRIPT_DIR"
|
||||||
ExecStart=/usr/bin/node .
|
ExecStart=/usr/bin/bash update.sh
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=RadioNode
|
User=RadioNode
|
||||||
Environment=DEBUG='server:*'
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >> /etc/systemd/system/RadioNodeUpdater.service
|
WantedBy=multi-user.target" >> /etc/systemd/system/RadioNodeUpdater.service
|
||||||
|
|||||||
Reference in New Issue
Block a user