diff --git a/bin/services.js b/bin/services.js index 4449405..3412ee1 100644 --- a/bin/services.js +++ b/bin/services.js @@ -55,9 +55,6 @@ module.exports.stopService = function(service) { } else if(service == `https://raphix.fr`) { let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 stop "Website - Raphix"'`) resolve("OK") - } else if(service == `https://cv.raphix.fr`) { - let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 stop "CV - Raphael"'`) - resolve("OK") } else if(service == `http://omega.raphix.fr:2333`) { let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl stop lavalink `) resolve("OK") @@ -89,9 +86,6 @@ module.exports.startService = function(service) { } else if(service == `https://raphix.fr`) { let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 start /home/gitlab-ci/website.config.js'`) resolve("OK") - } else if(service == `https://cv.raphix.fr`) { - let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 start /home/gitlab-ci/cv.config.js'`) - resolve("OK") } else if(service == `http://omega.raphix.fr:2333`) { let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl start lavalink `) resolve("OK") @@ -122,9 +116,6 @@ module.exports.restartService = function(service) { } else if(service == `https://raphix.fr`) { let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 restart "Website - Raphix"'`) resolve("OK") - } else if(service == `https://cv.raphix.fr`) { - let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 restart "CV - Raphael"'`) - resolve("OK") } else if(service == `http://omega.raphix.fr:2333`) { let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart lavalink `) resolve("OK") diff --git a/public/javascripts/service.js b/public/javascripts/service.js index 165481b..df49bc5 100644 --- a/public/javascripts/service.js +++ b/public/javascripts/service.js @@ -41,15 +41,7 @@ services.createWindow(async () => { }) - const cvraphix = new Service({ - name: "CV Raphix", - description: "Curriculum Vitae de Raphix", - icon: "/images/services/cv.png", - url: "https://cv.raphix.fr", - canAccess: true, - View: View - }) - + const lavalink = new Service({ name: "Lavalink", description: "Serveur Lavalink pour Subsonics", @@ -63,14 +55,12 @@ services.createWindow(async () => { allServices.push(lavalink.generateHTML()) allServices.push(giteaService.generateHTML()) allServices.push(raphixwebsite.generateHTML()) - allServices.push(cvraphix.generateHTML()) View.setContent(`
${allServices.join("")}
`) await subsonicsService.loadScript() await giteaService.loadScript() await raphixwebsite.loadScript() - await cvraphix.loadScript() await lavalink.loadScript() })