Version 2.0.4 - Fix du crash Lavalink (Temporaire)

This commit is contained in:
Raphael 2024-02-25 18:28:45 +01:00
parent 211e1ed652
commit 9f6460bc09
5 changed files with 6 additions and 5 deletions

View File

@ -480,7 +480,8 @@
"67eab87f-8a22-4cef-bf7c-b1109a4fbfdb",
"e18b2d89-2494-4cfe-af55-dad6dfbc0c60",
"0a0b75f3-6a42-4ccf-92f9-d992a63545a4",
"419a246f-e7b3-4aa4-9fa0-816dffc22a19"
"419a246f-e7b3-4aa4-9fa0-816dffc22a19",
"471c4c81-b8bc-42e7-af1a-d33df30cff2b"
],
"picture": "/userspictures/486943594893017119.png",
"banned": false,

View File

@ -1,7 +1,7 @@
{
"name": "subsonics-web",
"author": "Raphix",
"version": "2.0.3",
"version": "2.0.4",
"nodemonConfig": {
"ext": "js, html",
"ignore": [

View File

@ -91,7 +91,7 @@ module.exports.addNodes = function (data) {
nlog.step.init("add_nodes", "Ajout d'un nouveau noeud dans la base de donnée de nodes : " + data.host)
try {
var nodes_data = readNodesFile()
data.retryAmount = 1
data.retryAmount = 5
nodes_data.push(data)
saveNodesFile(nodes_data)
nlog.step.end("add_nodes")

View File

@ -557,8 +557,9 @@ function IOConnection(io) {
GetRequest("RESTART", () => {
const pm2 = require('pm2');
const child_process = require('child_process')
let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart lavalink `)
pm2.restart('Subsonics')
GetAnswer("RESTART", "OK")
})

View File

@ -6,7 +6,6 @@ const shuffle = getID("shuffle")
const durationBar = getID("duration")
const video_img = getID("video_img")
const video_title = getID("video_title")
const video_artist = getID("video_artist")