Version 0.3.2 - Fix  of Services
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Neutral/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Neutral/pipeline/head This commit looks good
				
			This commit is contained in:
		@@ -42,24 +42,24 @@ module.exports.stopService = function(service) {
 | 
				
			|||||||
    return new Promise((resolve, reject) => {
 | 
					    return new Promise((resolve, reject) => {
 | 
				
			||||||
       
 | 
					       
 | 
				
			||||||
        const child_process = require('child_process');
 | 
					        const child_process = require('child_process');
 | 
				
			||||||
        if(service == "https://subsonics.raphix.fr") {
 | 
					        if(service == `https://subsonics.raphix.fr`) {
 | 
				
			||||||
            let req = child_process.exec("ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci pm2 stop 'Subsonics'")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 stop "Subsonics"'`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "https://git.raphix.fr" ) {
 | 
					        } else if(service == `https://git.raphix.fr` ) {
 | 
				
			||||||
            let req = child_process.exec("ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl stop gitea")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl stop gitea`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "https://jenkins.raphix.fr") {
 | 
					        } else if(service == `https://jenkins.raphix.fr`) {
 | 
				
			||||||
            let req = child_process.exec("ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl stop jenkins ")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl stop jenkins `)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } else if(service == 'https://raphix.fr') {
 | 
					        } 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'")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 stop "Website - Raphix"'`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "https://cv.raphix.fr") {
 | 
					        } 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'")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 stop "CV - Raphael"'`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "http://omega.raphix.fr:2333") {
 | 
					        } 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 ")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl stop lavalink `)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            resolve(false)
 | 
					            resolve(false)
 | 
				
			||||||
@@ -75,25 +75,25 @@ module.exports.startService = function(service) {
 | 
				
			|||||||
    return new Promise((resolve, reject) => {
 | 
					    return new Promise((resolve, reject) => {
 | 
				
			||||||
       
 | 
					       
 | 
				
			||||||
        const child_process = require('child_process');
 | 
					        const child_process = require('child_process');
 | 
				
			||||||
        if(service == "https://subsonics.raphix.fr") {
 | 
					        if(service == `https://subsonics.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/subsonic.config.js")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 start /home/gitlab-ci/subsonic.config.js'`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
           
 | 
					           
 | 
				
			||||||
        } else if(service == "https://git.raphix.fr" ) {
 | 
					        } else if(service == `https://git.raphix.fr` ) {
 | 
				
			||||||
            let req = child_process.exec("ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl start gitea")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl start gitea`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "https://jenkins.raphix.fr") {
 | 
					        } else if(service == `https://jenkins.raphix.fr`) {
 | 
				
			||||||
            let req = child_process.exec("ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl start jenkins ")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl start jenkins `)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } else if(service == 'https://raphix.fr') {
 | 
					        } 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")
 | 
					            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")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "https://cv.raphix.fr") {
 | 
					        } 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")
 | 
					            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")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "http://omega.raphix.fr:2333") {
 | 
					        } 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 ")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl start lavalink `)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            resolve(false)
 | 
					            resolve(false)
 | 
				
			||||||
@@ -109,24 +109,24 @@ module.exports.restartService = function(service) {
 | 
				
			|||||||
    return new Promise((resolve, reject) => {
 | 
					    return new Promise((resolve, reject) => {
 | 
				
			||||||
       
 | 
					       
 | 
				
			||||||
        const child_process = require('child_process');
 | 
					        const child_process = require('child_process');
 | 
				
			||||||
        if(service == "https://subsonics.raphix.fr") {
 | 
					        if(service == `https://subsonics.raphix.fr`) {
 | 
				
			||||||
            let req = child_process.exec("ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci pm2 restart 'Subsonics'")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 restart "Subsonics"'`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "https://git.raphix.fr" ) {
 | 
					        } else if(service == `https://git.raphix.fr` ) {
 | 
				
			||||||
            let req = child_process.exec("ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart gitea")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart gitea`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "https://jenkins.raphix.fr") {
 | 
					        } else if(service == `https://jenkins.raphix.fr`) {
 | 
				
			||||||
            let req = child_process.exec("ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart jenkins ")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart jenkins `)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } else if(service == 'https://raphix.fr') {
 | 
					        } 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'")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 restart "Website - Raphix"'`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "https://cv.raphix.fr") {
 | 
					        } 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'")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@alpha.raphix.fr sudo -S -u gitlab-ci 'pm2 restart "CV - Raphael"'`)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else if(service == "http://omega.raphix.fr:2333") {
 | 
					        } 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 ")
 | 
					            let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart lavalink `)
 | 
				
			||||||
            resolve("OK")
 | 
					            resolve("OK")
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            resolve(false)
 | 
					            resolve(false)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "neutral",
 | 
					  "name": "neutral",
 | 
				
			||||||
  "version": "0.3.1",
 | 
					  "version": "0.3.2",
 | 
				
			||||||
  "description": "Panel d'administration de Raphix",
 | 
					  "description": "Panel d'administration de Raphix",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user